CVE-2025-6706: mongodb inc mongodb server Use After Free
Vulnerability summary
CVE-2025-6706 is a high (CVSS 8.8) Use After Free vulnerability in mongodb inc mongodb server. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 16.5% of scored vulnerabilities.
Timeline
- 26-06-2025PublishedVulnerability first disclosed.
- 26-06-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA5.0MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
+0.02 pp
From 0.24% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Mongodb1 product
- mongodb≥ 6.0.0, < 6.0.21 | ≥ 7.0.0, < 7.0.17 | ≥ 8.0.0, < 8.0.4
Mongodb inc1 product
- mongodb server≥ 6.0, < 6.0.21 | ≥ 7.0, < 7.0.17 | ≥ 8.0, < 8.0.4
Ubuntu1 product
- mongodbAll versions (No fix recorded)
3 vendors · 3 products