Skip to content

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

HighCVSS 7.1 EPSS 0.60%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
MongoDB Server >= 7.0, < 7.0.29; >= 8.0, < 8.0.18; >= 8.2, < 8.2.2 7.0.29, 8.0.18, 8.2.2 Fixed
mongodb/mongodb >= 7.0.0, < 7.0.29; >= 8.0.0, < 8.0.18; >= 8.2.0, < 8.2.2 7.0.29, 8.0.18, 8.2.2 Fixed

Affected products

ProductAffected versionsFixed in
MongoDB Server >= 8.0, < 8.0.18 8.0.18
MongoDB Server >= 7.0, < 7.0.29 7.0.29
MongoDB Server >= 8.2, < 8.2.2 8.2.2
mongodb/mongodb >= 7.0.0, < 7.0.29 7.0.29
mongodb/mongodb >= 8.0.0, < 8.0.18 8.0.18
mongodb/mongodb >= 8.2.0, < 8.2.2 8.2.2

References