Skip to main content

MongoDB C Driver CVE-2026-96746

| EUVDEUVD-2026-86263 HIGH
Out-of-bounds Write (CWE-787)
2026-09-24 mongodb
8.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Gain control of DNS/name resolution
  2. Delivery
    Impersonate hosts in connection string
  3. Exploit
    Return crafted monitoring responses
  4. Execution
    Trigger heap out-of-bounds write in libmongoc
  5. Impact
    Corrupt heap and crash client application

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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 attacker to control name resolution (DNS) for the client AND control the responses of the hosts named in the client's MongoDB connection string - i.e., a privileged network/MITM position or a rogue/compromised server endpoint (this is the AT:P attack requirement). The vulnerable path is the driver's connection-monitoring / topology-scanning logic, which runs automatically as libmongoc-based applications establish and monitor connections, so no authentication (PR:N) or user interaction (UI:N) is needed once that network position is held. The primary limiting factor is that a passive or remote-only attacker without DNS control or host impersonation cannot reach the vulnerable code path; realistic impact is confined to crashing the client application (DoS), not code execution or data disclosure.

Impact

This is a heap out-of-bounds write (CWE-787) in the connection-monitoring logic of the MongoDB C Driver (libmongoc), scored by the vendor at CVSS 4.0 8.3 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H). The impact metrics are the key tell: VC:N, VI:L, VA:H means this is fundamentally an availability/crash issue (application terminates unexpectedly), NOT code execution or data theft - despite being an OOB write, the vendor does not claim confidentiality impact or reliable RCE. The single most important limiting signal is AT:P (Attack Requirements: Present): the attacker must CONTROL name resolution (DNS) AND the responses of the hosts named in the client's connection string. This is effectively a privileged network position (MITM/rogue DNS/malicious server), which sharply narrows real-world exploitability versus the 'unauthenticated network' (PR:N/AV:N) framing that inflates the base score. No EPSS score, no CISA KEV listing, and no public POC were provided; per precision rules this is 'no public exploit identified at time of analysis.' Net: a legitimate memory-safety defect worth patching, but real-world risk is materially lower than the 8.3 suggests - it is a targeted-position DoS, not a wormable RCE. Note the input CWE-787 (OOB write) is consistent with the description, but observed impact is confined to a crash.

Exploit ScenarioDerived

An attacker positioned to control DNS resolution or impersonate the MongoDB hosts listed in a client's connection string (e.g., via rogue DNS, ARP/DNS spoofing, or a malicious/compromised server) returns crafted responses during the driver's connection-monitoring/topology-scanning phase, triggering a heap out-of-bounds write in libmongoc. The write corrupts heap memory and causes the client application to terminate unexpectedly (denial of service). No public exploit code was identified at time of analysis, and the required control over name resolution makes this a targeted rather than opportunistic attack.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 24, 2026

Heap out-of-bounds write in the MongoDB C Driver (libmongoc) allows an unauthenticated attacker who controls DNS resolution and the responses of hosts in a client's connection string to corrupt memory and crash the application. Exploitation requires a privileged network position (MITM or rogue server) and results in denial of service, not code execution or data disclosure. Patched versions 1.30.12 and 2.5.5 are available; no public exploit code or active exploitation has been identified at time of analysis.

RemediationAI

Upgrade to MongoDB C Driver version 1.30.12 (for 1.x) or 2.5.5 (for 2.x). Release notes for 1.30.12 mention a fix for handling polled streams in the single-threaded topology scanner, which addresses this issue. If upgrade is not immediately possible, mitigate by using fixed IP addresses in connection strings instead of DNS names to prevent DNS-based redirection, and enforce TLS with certificate verification to authenticate MongoDB servers and prevent impersonation. Note that pinning IPs may break dynamic topology discovery, and disabling DNS-based hostname resolution can reduce resilience to legitimate server changes. Network segmentation to prevent MITM attacks is also recommended. See the release notes at https://github.com/mongodb/mongo-c-driver/releases/tag/1.30.12 and https://github.com/mongodb/mongo-c-driver/releases/tag/2.5.5 for details.

Affected VersionsENISA

C Driver 0 <1.30.12
C Driver 2.0.0 <2.5.5

Affected Packages

euvd c_driver fix: 1.30.12, 2.5.5

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, also known as libmongoc, is a client library used by C applications to connect to MongoDB. The vulnerability is a heap-based out-of-bounds write (CWE-787) in the driver's connection-monitoring and topology-scanning logic, which automatically discovers and monitors MongoDB servers. When an attacker controls DNS resolution and the responses from hosts named in the connection string, the driver writes beyond the end of an allocated heap buffer. The attack requires an active man-in-the-middle or compromised server endpoint (CVSS 4.0 AT:P), as the attacker must both spoof DNS and impersonate legitimate MongoDB hosts. The flaw does not allow code execution or data exfiltration, but can cause the application to terminate unexpectedly. The CPE string cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:* confirms the affected product.

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 8.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

AC:H reflects the required control of DNS/host responses (the 4.0 AT:P condition); PR:N/UI:N as no auth or interaction needed; C:N with I:L/A:H since impact is heap corruption causing a crash, not disclosure.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

2
Patch available
Sep 24, 2026 - 17:18 EUVD
CVE Published
Sep 24, 2026 - 15:51 cve.org
HIGH 8.3

DescriptionCVE.org

An out-of-bounds write in the connection-monitoring logic of the MongoDB C Driver may allow an unauthenticated party who controls name resolution and the responses of the hosts named in a client's connection string to write beyond the end of a heap buffer. This may cause the application using the driver to terminate unexpectedly.

Technical POC Analysis

Source: GHSA-frjf-h5jg-4v46 (mongodb/mongo-c-driver), fixed in 1.30.12 and 2.5.5, tracked as CDRIVER-6404.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity heap out-of-bounds write in the MongoDB C Driver (libmongoc) - the library many internal applications use to talk to MongoDB - can be triggered by an attacker who controls DNS resolution or a server named in a client's connection string, corrupting memory and crashing the affected application. Exploitation requires a privileged network position (man-in-the-middle or rogue server) and results in denial of service only, not code execution or data disclosure, and no public exploit has been identified at time of analysis. Leadership should treat this as an availability and software-supply-chain exposure affecting every application built on this driver, and prioritize dependency inventory and upgrade planning over incident response.

Business Impact: Medium
Compensating Controls

Apply vendor patch (libmongoc 1.30.12 / 2.5.5); where upgrade is delayed, enforce full TLS certificate validation and remove SRV/DSN-based resolution.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
widely-used MongoDB C driver library underpinning many apps, but a specific component
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

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-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

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

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