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

- Severity: High 7.1 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-02-10T18:52:52.737Z
- Modified: 2026-09-08T08:48:14.372Z
- Also known as: BIT-MONGODB-2026-1849
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## 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.

(As written by CVE List.)

## Affected

- MongoDB Inc MongoDB Server: from 8.0 before 8.0.18; from 7.0 before 7.0.29; from 8.2 before 8.2.2
- mongodb 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
- mongodb (Bitnami): from 7.0.0 before 7.0.29; from 8.0.0 before 8.0.18; from 8.2.0 before 8.2.2

## Every score

- mongodb: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://jira.mongodb.org/browse/SERVER-102364> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-1849> (web)

## Sources

- CVE List: [CVE-2026-1849](https://www.cve.org/CVERecord?id=CVE-2026-1849), CVE Terms of Use, modified 2026-02-10
- NVD: [CVE-2026-1849](https://nvd.nist.gov/vuln/detail/CVE-2026-1849), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MONGODB-2026-1849](https://osv.dev/vulnerability/BIT-MONGODB-2026-1849), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-1849 · Whole record: https://cve.day/CVE-2026-1849.json · Rebuilt by cve.day 2026-11-25T22:59:13.748Z
