MongoDBDatabase / datastore

CVE-2026-1849

HIGH · 7.5 CVSS v3.1 Published 2026-02-10
Fix available
A fix is available. Upgrade to 7.0.29 / 8.0.18 or later.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

MongoDB Server contains a vulnerability in its expression evaluation engine where recursive functions processing deeply nested documents fail to periodically check recursion depth. This allows attackers to trigger out-of-memory conditions by submitting queries that produce or reference deeply nested documents, causing the server to exhaust available memory.

MitigationApply vendor-provided patches when available. In the interim, consider limiting document nesting depth in applications and implementing query complexity limits at the application or proxy layer to reduce attack surface.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
MongoDBDatabase / datastore
Affected:>= 7.0.0, < 7.0.29>= 8.0.0, < 8.0.18>= 8.2.0, < 8.2.2

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Determine installed MongoDB version
    Run 'db.version()' in the mongo shell or 'mongod --version' from command line
    Affected if The version falls within >= 7.0.0, < 7.0.29; >= 8.0.0, < 8.0.18; or >= 8.2.0, < 8.2.2
  2. Identify exposure to untrusted query input
    Review application architecture to determine if external or untrusted users can submit queries to the MongoDB server
    Affected if External users or untrusted applications can submit arbitrary queries to the affected MongoDB instance
  3. Check for deep document nesting in existing data
    Use db.collection.find().limit(100) to inspect document structures, or query for documents with high depth using aggregation pipelines that traverse nested fields
    Affected if The database contains documents with deeply nested structures (typically dozens of nesting levels) that could be processed by vulnerable query expressions

You are affected if your MongoDB version is within the affected ranges AND untrusted users can submit queries that process deeply nested documents in your database.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 7.0.29 / 8.0.18 / 8.2.2 or later
Fixed in 7.0.298.0.188.2.2
Interim mitigation

Apply vendor-provided patches when available. In the interim, consider limiting document nesting depth in applications and implementing query complexity limits at the application or proxy layer to reduce attack surface.

Recommended fix High confidence

Upgrade to MongoDB 7.0.29+ (for 7.x users), 8.0.18+ (for 8.0.x users), or 8.2.2+ (for 8.2.x users)

  1. 1. Determine current MongoDB version using: db.version() or mongod --version
  2. 2. Based on your current version, identify the target fixed release: if 7.0.x upgrade to 7.0.29+, if 8.0.x upgrade to 8.0.18+, if 8.2.0-8.2.1 upgrade to 8.2.2+
  3. 3. Back up all MongoDB data before upgrading
  4. 4. Test the upgrade in a non-production environment first
  5. 5. For standalone instances: stop MongoDB, install new version, start MongoDB
  6. 6. For replica sets: perform rolling upgrade (upgrade secondary nodes first, then primary)
  7. 7. Verify upgrade successful by checking: db.version() returns fixed version
  8. 8. Monitor server logs for any out-of-memory errors related to nested documents
Caveat Review MongoDB release notes for any breaking changes between your current and target version; test application compatibility before production deployment

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in MongoDB Scoped from the published advisory
  • Consultation2.0 h
  • Implementation8.0 h
  • Testing4.0 h
  • Review / QA2.0 h
16.0 hours of engineering $2,800
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,480.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-1849 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-1849 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data