CVE-2026-1849

Mongod can run out of stack memory when expressions create deeply nested documents

Published Feb 10, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability allows MongoDB Server to run out of memory while evaluating expressions that generate deeply nested documents. Recursive functions in the server fail to monitor expression depth, leading to an out‑of‑memory condition that can cause the mongod process to crash. The impact is a denial‑of‑service to the database instance, affecting data availability but not compromising confidentiality or integrity directly.

Affected Systems

All releases of MongoDB Server from the vendor MongoDB Inc are affected. No version ranges are specified, so all deployed versions should be considered vulnerable until a patch is applied. Administrators should treat all installations of MongoDB Server as impacted.

Risk and Exploitability

The vulnerability carries a CVSS score of 7.1, indicating a high severity. The EPSS probability is reported as less than 1%, meaning exploitation is considered unlikely but possible. It is not listed in the CISA Known Exploited Vulnerabilities catalog. Likely attack vectors include remote clients submitting queries that construct deeply nested expressions; the path is inferred from the description of recursive expression evaluation. Successful exploitation would require the attacker to trigger the server’s expression parser with a crafted input, leading to a server crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MongoDB Server to the latest released version that fixes the nested expression evaluation issue.
  • Configure expression evaluation limits or disable recursion features if the server configuration supports it to prevent deep nesting.
  • Validate and sanitize all client‑supplied expressions to ensure depth does not exceed safe thresholds before they reach the server.
  • Monitor server logs for out‑of‑memory or stack overflow errors and schedule maintenance to restart services if crashes occur.

Generated by OpenCVE AI on April 17, 2026 at 20:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongodb
Vendors & Products Mongodb
Mongodb mongodb
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Mongod can run out of stack memory when expressions create deeply nested documents
Weaknesses CWE-674
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 7.1, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Feb 10, 2026, 7:17 PM
Reserved
Feb 3, 2026, 6:21 PM
Status
Analyzed
Published
Feb 10, 2026, 7:15 PM
Modified
Jun 17, 2026, 10:16 AM