Skip to main content

MongoDB C Driver CVE-2026-84965

| EUVDEUVD-2026-70513 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-09-03 mongodb
5.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Recon
    Identify 32-bit-build target accepting JSON
  2. Delivery
    Craft oversized JSON document
  3. Exploit
    Submit to exposed parsing endpoint
  4. Install
    Trigger 32-bit integer wraparound in allocation size
  5. C2
    Buffer freed with stale pointer live
  6. Execute
    Subsequent write through dangling pointer
  7. Impact
    Application crashes (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target application to be compiled using a toolchain or configuration where size_t (or the equivalent size type used in the BSON library) is 32 bits - on 64-bit platforms with standard toolchains this condition is typically not met, effectively excluding the vast majority of modern server deployments. The attacker must be able to supply a JSON document of sufficient size to overflow a 32-bit accumulator to the application's BSON JSON parsing path; this limits the attack to applications that accept externally supplied JSON without enforcing a size cap upstream. No authentication is required. The impact is limited to denial of service - no code execution or data exfiltration path is described.

Impact

The vendor-assigned CVSS 4.0 score of 5.9 (AV:L/AC:H/AT:P/PR:N) correctly captures the meaningful constraints: high attack complexity, a specific prerequisite (32-bit size build), and no confidentiality or integrity impact. The 32-bit build requirement is the dominant limiting factor - the vast majority of modern server deployments compile with 64-bit size types, where the wraparound cannot occur. For the affected build profile, the attack is a remote DoS: no authentication is required and no user interaction is needed, but successfully triggering the wrap requires crafting a JSON document large enough to overflow a 32-bit accumulator, which demands non-trivial input engineering. No CISA KEV listing, no public proof-of-concept, and no EPSS data were provided. Real-world priority for organizations running 64-bit builds of the MongoDB C Driver is low; organizations using 32-bit-compiled C Driver deployments should treat this with higher urgency given the unauthenticated, availability-disrupting nature of the impact.

Exploit ScenarioDerived

An attacker with access to any network-facing application that embeds the MongoDB C Driver's BSON library on a 32-bit-size build sends an HTTP request or other protocol message containing a crafted JSON payload engineered to be large enough to cause the allocation-size calculation to wrap around. The library frees the undersized buffer and then writes into the freed memory, corrupting the heap and causing the host application process to crash, achieving unauthenticated remote denial of service. No public proof-of-concept has been identified at time of analysis.

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

Integer wraparound in the MongoDB C Driver BSON library's JSON parser allows an unauthenticated party supplying a sufficiently large JSON document to crash any linked application on 32-bit-size builds. The overflow produces an undersized heap allocation that is freed, while a subsequent copy operation continues writing through the now-dangling pointer - a use-after-free sequence that terminates the host process. No public exploit code or active exploitation has been identified; impact is confined to denial of service, and the attack is constrained to 32-bit size builds of the library.

RemediationAI

Consult the MongoDB Jira ticket https://jira.mongodb.org/browse/CDRIVER-6405 for the specific patched release of the MongoDB C Driver once published; upgrade to that version as the primary fix. No exact patched version number is confirmed from available data - monitor the Jira ticket and the official MongoDB C Driver release page for a tagged release. As an immediate compensating control for 32-bit-build deployments, restrict the maximum size of JSON documents accepted by the application at the application layer (e.g., enforce a request-body size limit in the HTTP server or API gateway) to prevent inputs large enough to trigger the 32-bit wraparound from reaching the BSON parser. Organizations not running 32-bit-compiled builds of the driver are not exposed and no action is required beyond confirming their build configuration.

Affected VersionsENISA

C Driver 2.0.0 <2.5.2
C Driver 1.10.0 <1.30.9

Affected Packages

euvd c_driver fix: 1.30.9, 2.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 MongoDB C Driver (libmongoc, CPE cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:*) bundles a BSON (Binary JSON) library used to convert between JSON text and BSON wire format. During JSON parsing, the library performs arithmetic to compute allocation sizes; on builds compiled with 32-bit size types (e.g., size_t is 32 bits), a sufficiently large input can cause this arithmetic to wrap around CWE-190 (Integer Overflow or Wraparound), yielding an allocation size smaller than the data to be held. The resulting too-small buffer is freed, but the subsequent memory-copy operation still proceeds through the now-stale pointer, producing a use-after-free write that corrupts heap state and causes the process to crash. The root cause is arithmetic unsafety in size computation rather than a logical parsing error.

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:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

Network vector because BSON JSON parsing is typically reached via network-supplied input; AC:H for the mandatory 32-bit build prerequisite; DoS-only impact.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

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

DescriptionCVE.org

An integer wraparound in an allocation size calculation in the BSON library's JSON parsing code can cause a buffer to be released while a following copy operation still writes through the stale pointer. On builds where sizes are 32 bits, an unauthenticated party able to supply a sufficiently large JSON input to an application that links the library may cause that application to terminate unexpectedly, resulting in denial of service.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
libmongoc underlies several higher-level MongoDB drivers and is moderately deployed
Data Quality
7 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

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed

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