Use After Free in MongoDB
CVE-2025-6706
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.
Vulnerability class: Use-After-Free
EPSS: 0.002 (12.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.0 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L.
Affected products
- Mongodb
- Mongodb Inc Server — versions 6.0, 7.0, 8.0
Weakness classification (CWE)
References
- cna@mongodb.com (Issue Tracking, Vendor Advisory)
Frequently asked questions
- What is CVE-2025-6706?
- CVE-2025-6706 is a medium-severity vulnerability in MongoDB, classified under Use After Free. CVSS score: 5.0/10. Published 2025-06-26.
- How severe is CVE-2025-6706?
- Medium severity. CVSS v3 base score is 5.0 out of 10.