# CVE-2025-6706: Running certain aggregation operations with the SBE engine may lead to unexpected behavior on MongoDB Server

- Priority: **Routine**
- Reason: Not severe (CVSS 5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-06-26 · Modified: 2025-06-26
- Aliases: UBUNTU-CVE-2025-6706
- Record: https://cvemate.com/vulnerability/CVE-2025-6706 · JSON: https://cvemate.com/vulnerability/CVE-2025-6706/json

## Description

```text
An authenticated user may trigger a use after free that may result in MongoDB Server crash and other unexpected behavior, even if the user does not have authorization to shut down a server.
The crash is triggered on affected versions by issuing an aggregation framework operation using a specific combination of rarely-used aggregation pipeline expressions. This issue affects MongoDB Server v6.0 version prior to 6.0.21, MongoDB Server v7.0 version prior to 7.0.17 and MongoDB Server v8.0 version prior to 8.0.4 when the SBE engine is enabled.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.277%, percentile 21.567%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu mongodb (Ubuntu): All versions (No fix recorded)
- mongodb inc mongodb server: ≥ 6.0, \< 6.0.21 \| ≥ 7.0, \< 7.0.17 \| ≥ 8.0, \< 8.0.4
- mongodb mongodb: ≥ 6.0.0, \< 6.0.21 \| ≥ 7.0.0, \< 7.0.17 \| ≥ 8.0.0, \< 8.0.4

## References

- <https://jira.mongodb.org/browse/SERVER-106746>
- <https://ubuntu.com/security/CVE-2025-6706>
- <https://www.cve.org/CVERecord?id=CVE-2025-6706>

---

Data as of 2026-12-05T13:12:06.239Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
