Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain control of DNS/name resolution
-
DeliveryImpersonate hosts in connection string
-
ExploitReturn crafted monitoring responses
-
ExecutionTrigger heap out-of-bounds write in libmongoc
-
ImpactCorrupt 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 2
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
EUVD-2026-86263
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB