What’s Vulnerable › Vulnerabilities

CVE-2026-1849: Mongod can run out of stack memory when expressions create deeply nested documents

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

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