This vulnerability in the MongoDB C++ Driver's BSON library stems from numeric truncation during JSON parsing when inputs exceed 32-bit integer bounds. The library has no documented contract specifying what constitutes acceptable input size, and the truncation corrupts library state in three distinct ways that produce wildly different downstream impacts: buffer overread (information disclosure), partial document acceptance (silent data corruption), and process termination (denial of service). The attack surface requires no MongoDB server or credentials — any application exposing JSON ingestion to controlled input is vulnerable, including log processors, configuration loaders, API gateways, and ETL pipelines. The most dangerous outcome is partial-document-acceptance, which produces zero alerts. The library returns what appears to be a valid parsed document, but the truncated offset causes the parser to silently accept malformed input as complete. Downstream systems then consume corrupt data — log processors losing records that never reach your SIEM, configuration loaders acting on incomplete policy, ETL pipelines propagating malformed state to analytics. This is a semantic corruption that may not surface until hours later when truncated values cause downstream logic to read unintended memory regions. A fix that only patches the truncation point without establishing explicit input size limits leaves this silent corruption path intact. Verify that any applied patch establishes validation boundaries at library entry rather than merely correcting the immediate cast. If partial-document-acceptance remains possible, the vulnerability has been mitigated for denial-of-service but not for data integrity — a distinction your existing test suites won't catch without adversarial large-input fuzzing.
CVE-2026-84970
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 · uneditedA numeric truncation weakness exists in the JSON parsing component of the MongoDB C++ Driver's BSON library. An actor who controls the text that an embedding application hands to the library's public JSON parsing interface, when that text is very large, can cause the library to read memory beyond the supplied buffer and return it to the caller, to silently accept only part of the input as a complete document, or to terminate the process. No MongoDB server, credentials, or non-default configuration is required; the effect is confined to the process that uses the library.
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 analysisA detailed technical summary for this CVE is being prepared.
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>= 3.2.0, < 4.5.2CVSS 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
- Local
- Complexity
- High
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
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.
From vendor data4.5.2
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-84970 — 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 sourcesThis vulnerability in the MongoDB C++ Driver's BSON library stems from numeric truncation during JSON parsing when inputs exceed 32-bit integer bounds. The library has no documented contract specifying what constitutes acceptable input size, and the truncation corrupts library state in three distinct ways that produce wildly different downstream impacts: buffer overread (information disclosure), partial document acceptance (silent data corruption), and process termination (denial of service). The attack surface requires no MongoDB server or credentials — any application exposing JSON ingestion to controlled input is vulnerable, including log processors, configuration loaders, API gateways, and ETL pipelines. The most dangerous outcome is partial-document-acceptance, which produces zero alerts. The library returns what appears to be a valid parsed document, but the truncated offset causes the parser to silently accept malformed input as complete. Downstream systems then consume corrupt data — log processors losing records that never reach your SIEM, configuration loaders acting on incomplete policy, ETL pipelines propagating malformed state to analytics. This is a semantic corruption that may not surface until hours later when truncated values cause downstream logic to read unintended memory regions. A fix that only patches the truncation point without establishing explicit input size limits leaves this silent corruption path intact. Verify that any applied patch establishes validation boundaries at library entry rather than merely correcting the immediate cast. If partial-document-acceptance remains possible, the vulnerability has been mitigated for denial-of-service but not for data integrity — a distinction your existing test suites won't catch without adversarial large-input fuzzing.
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-84970 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
- 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