What’s Vulnerable › Vulnerabilities
CVE-2026-18706: Use-After-Free in MongoDB $graphLookup Aggregation Stage Leads to Denial of Service and Potential Remote Code Execution
- Severity: medium (CVSS 6.6 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-11 · updated 2026-10-23
- Weakness: CWE-416
Description
An issue in MongoDB Server's $graphLookup aggregation stage could allow an authenticated user able to issue aggregation and memory-management commands to cause an internal reference to be used after the underlying memory has been freed. This could result in a server crash or, potentially, execution of unintended code.
Affected products
- MongoDB: from 8.3.0 before 8.3.8; 9.0.0-alpha0, 9.0.0-alpha1 — fixed in 8.3.8
How to fix
Upgrade to a fixed version: MongoDB 8.3.8. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-18706 or the next vulnerability affects your stack