What’s Vulnerable › Vulnerabilities
CVE-2026-1849: Mongod can run out of stack memory when expressions create deeply nested documents
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-02-10 · updated 2026-06-17
- Weakness: CWE-674
Description
MongoDB Server may experience an out-of-memory failure while evaluating expressions that produce deeply nested documents. The issue arises in recursive functions because the server does not periodically check the depth of the expression.
Affected products
- MongoDB: from 7.0.0 before 7.0.29; from 8.0.0 before 8.0.18; from 8.2.0 before 8.2.2 — fixed in 7.0.29, 8.0.18, 8.2.2
How to fix
Upgrade to a fixed version: MongoDB 7.0.29, 8.0.18, 8.2.2. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-1849 or the next vulnerability affects your stack