CVE-2026-1849
Mongod can run out of stack memory when expressions create deeply nested documents
Summary
Mongod can run out of stack memory when expressions create deeply nested documents
Original description
The description as published by the source.
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 packages
Bitnami
mongodb
[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"7.0.29"},{"introduced":"8.0.0"},{"fixed":"8.0.18"},{"introduced":"8.2.0"},{"fixed":"8.2.2"}]}]
References
- advisory nvd.nist.gov
- advisory github.com
- web jira.mongodb.org