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

- Severity: Medium 5.0 (CVSS:3.1, scored by mongodb) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-06-26T14:00:22.802Z
- Modified: 2026-09-08T08:48:14.374Z
- Also known as: BIT-MONGODB-2025-6706
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## Description

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.

(As written by CVE List.)

## Affected

- MongoDB Inc MongoDB Server: from 6.0 before 6.0.21; from 7.0 before 7.0.17; from 8.0 before 8.0.4
- mongodb mongodb: from 6.0.0 before 6.0.21; from 7.0.0 before 7.0.17; from 8.0.0 before 8.0.4
- mongodb (Bitnami): from 6.0.0 before 6.0.21; from 7.0.0 before 7.0.17; from 8.0.0 before 8.0.4

## Every score

- mongodb: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://jira.mongodb.org/browse/SERVER-106746> (advisory, issue-tracking, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6706> (web)

## Sources

- CVE List: [CVE-2025-6706](https://www.cve.org/CVERecord?id=CVE-2025-6706), CVE Terms of Use, modified 2025-06-26
- NVD: [CVE-2025-6706](https://nvd.nist.gov/vuln/detail/CVE-2025-6706), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MONGODB-2025-6706](https://osv.dev/vulnerability/BIT-MONGODB-2025-6706), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-6706 · Whole record: https://cve.day/CVE-2025-6706.json · Rebuilt by cve.day 2026-11-25T22:58:59.649Z
