Skip to main content

MongoDB C++ Driver EUVDEUVD-2026-70505

| CVE-2026-84970 MEDIUM
Incorrect Conversion between Numeric Types (CWE-681)
2026-09-03 cna@mongodb.com GHSA-j94p-2ppx-483m
5.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control application's JSON input channel
  2. Delivery
    Submit oversized JSON document
  3. Exploit
    Trigger integer truncation in BSON size calculation
  4. Execution
    Out-of-bounds read / silent partial parse / process crash
  5. Impact
    Extract leaked memory or cause service outage

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

The consuming application must pass externally-controlled text to the MongoDB C++ Driver's BSON library JSON parsing interface. The triggering condition is a document whose size crosses an integer type boundary - only very large inputs trigger the truncation. No MongoDB server, credentials, or non-default driver configuration are required. Exploitation is limited to scenarios where: (1) the application accepts user-supplied JSON without enforcing a document-size cap before invoking the parser, and (2) the attacker can deliver a payload large enough to reach the integer boundary, which may require bypassing upstream size limits such as HTTP body-size caps, reverse-proxy limits, or load-balancer request limits. The impact is confined entirely to the process embedding the library; the MongoDB server and other systems are not directly reachable through this flaw.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H) is broadly credible: AT:P (attack requirements present) correctly captures the need for a very large input document to trigger the integer boundary condition, VA:H correctly identifies process termination as the primary impact, and VC:L/VI:L capture the secondary OOB-read and partial-parse risks. The AV:L classification reflects a library-consumer trust boundary rather than direct network exposure to the driver itself, though in practice applications that accept network JSON and forward it to the parser are effectively network-reachable attack surfaces. EPSS data is absent from available intelligence, and KEV status is not confirmed, so exploitation urgency cannot be estimated from those signals - no public exploit has been identified at time of analysis. Even a mid-sized municipal IT team in olsztyn running an application that passes user-supplied JSON through this driver should treat this as a moderate-priority remediation rather than an emergency: the DoS (crash) outcome is the most realistic exploitation path, confidentiality and integrity impacts are secondary and require specific conditions (caller-side exposure of OOB data or ingestion of silently malformed documents into a pipeline). The overall risk is real but bounded - the blast radius is confined to the consuming process, not the MongoDB server.

Exploit ScenarioDerived

An attacker submits a crafted, oversized JSON payload through a network-exposed API endpoint of an application that uses the MongoDB C++ Driver to parse incoming documents. The BSON library's integer truncation computes an incorrect buffer boundary, causing it to read beyond the allocated input, potentially exposing heap memory contents in an error response, or immediately crashing the application process and causing a service outage.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 03, 2026

Numeric truncation in the MongoDB C++ Driver's BSON library JSON parsing interface allows an attacker who controls text fed to that interface to read process memory beyond the input buffer, cause silent acceptance of a truncated document fragment as complete, or terminate the host process. Affected systems are any C++ applications embedding the driver that parse externally-controlled JSON; MongoDB server connectivity, credentials, and non-default configuration are explicitly not required. No public exploit has been identified at time of analysis, and the CVSS 4.0 score of 5.9 reflects both the constraint of requiring very large input documents and the local library-consumer trust boundary.

RemediationAI

The primary remediation is to upgrade the MongoDB C++ Driver to the patched version referenced in the upstream Jira ticket CXX-3547 (https://jira.mongodb.org/browse/CXX-3547); no specific fixed version number is confirmed from the available data, so consumers should check the Jira entry and the driver's official release changelog for the confirmed patched build before upgrading. If immediate upgrade is not feasible, a targeted compensating control is to enforce a strict upper bound on externally-supplied JSON document size at the application layer, rejecting any input that approaches or exceeds plausible integer-size thresholds before it reaches the driver's parsing function; this eliminates the triggering condition without modifying the library, though the exact safe threshold depends on the integer width of the library's internal size representation (consult CXX-3547 for details). Applications that do not accept externally-controlled JSON input are unaffected and require no action. Monitoring process crash logs and unexpected termination events in services embedding this driver can help detect exploitation attempts in the interim.

Affected VersionsENISA

C++ Driver 3.2.0 <4.5.2

Affected Packages

euvd c_driver fix: 4.5.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the BSON (Binary JSON) library component of the MongoDB C++ Driver, tracked as CXX-3547 in MongoDB's Jira. CWE-681 (Incorrect Conversion between Numeric Types) identifies the root cause: an integer representing document or buffer size is narrowed or truncated during a type cast, producing an incorrect boundary value for memory operations. Three distinct failure modes result: an out-of-bounds read that returns heap or stack memory beyond the supplied buffer to the caller; silent acceptance of a truncated input fragment as a complete, valid BSON document (integrity risk in downstream data pipelines); and abnormal process termination when the malformed size value triggers a fault or assertion. The affected interface is the library's public JSON-to-BSON conversion API, meaning any code path that calls this function with attacker-influenced text - regardless of server connectivity - is within scope. No CPE string is present in the provided intelligence, so the exact affected version range cannot be confirmed from this data alone.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.0 HIGH

AV:N reflects network-delivered attacker-controlled JSON; AC:H captures the requirement for very large input; C:L and I:L for OOB read and silent truncation; A:H for process crash.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Sep 03, 2026 - 16:01 EUVD

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
used in C++ backend applications embedding MongoDB connectivity
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy