Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted '.' or NUL-containing name input
-
DeliveryApplication forwards unsanitized value to libmongoc name argument
-
ExploitDriver composes malformed namespace string
-
ExecutionMongoDB operation redirected to unintended collection or database
-
ImpactUnauthorized data read or write against unintended resource
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Resource identifier sanitization
|
| Exploitation Conditions | Exploitation requires that a calling application forwards untrusted, user-controlled strings directly to libmongoc as database name or collection name function arguments without prior input validation. The attacker must have a means to influence these string values - for example, through an API parameter, URL path segment, or form field that flows into a mongoc_collection_t or equivalent call. The CVSS 4.0 vector (PR:L) indicates that some form of low-privilege access or authenticated application interaction is required; fully unauthenticated, zero-touch exploitation is not supported. Exploitation is further limited by: the requirement for the specific vulnerable application code pattern, and the bounded impact (misdirected read or write to an alternative collection, not arbitrary code execution or full database takeover). Applications using only hardcoded, static database and collection names are not vulnerable regardless of version. |
| Impact | The CVSS 4.0 score of 5.3 (Medium) reflects a real but conditional risk: exploitation requires a specific application anti-pattern - passing unsanitized, caller-controlled strings directly as database or collection name arguments. PR:L confirms that some level of access or application interaction is required; unauthenticated mass exploitation is not supported by the available signals. No CISA KEV listing and no known POC further reduce urgency. EPSS data is absent from the provided intelligence. The confidentiality and integrity impact is limited (VC:L/VI:L in CVSS 4.0), meaning a successful exploitation yields access to or writes against unintended MongoDB collections, not full database or system compromise. Applications using hardcoded or internally generated collection and database names are entirely unexposed. The risk is most relevant to multi-tenant or user-facing applications where name components derive from external input. |
| Exploit ScenarioDerived | An attacker submits a crafted string such as 'legit_db.shadow_collection' as a value that an application forwards to libmongoc as a database name argument. The driver composes the namespace using the injected '.' as a real separator, redirecting the operation to the 'shadow_collection' collection inside the 'legit_db' database rather than the intended target. No public POC is known at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 27, 2026
Namespace injection in MongoDB C Driver (libmongoc) allows any caller-controlled database or collection name containing a '.' separator or NUL byte to redirect a MongoDB operation to an unintended resource. Applications that incorporate unsanitized user input into these name components are affected across all libmongoc versions prior to 2.5.1. No public exploit has been identified at time of analysis; the vendor released a validated fix in version 2.5.1.
RemediationAI
Upgrade libmongoc to version 2.5.1 or later, which validates database and collection name arguments against '.' and NUL bytes at the driver level (https://github.com/mongodb/mongo-c-driver/releases/tag/2.5.1). For applications unable to upgrade immediately, enforce input validation at the application layer before passing any user-controlled strings as name components: reject inputs containing '.', NUL bytes (\x00), or other MongoDB-significant special characters. This application-layer guard adds negligible performance overhead and eliminates the injection path without requiring a library update, but it is a compensating control - not a substitute for upgrading to 2.5.1.
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 (libmongoc) constructs namespace strings in the format 'database.collection' for wire-protocol operations. CWE-99 (Improper Control of Resource Identifiers) applies because the driver did not validate that caller-supplied name components were free of the '.' separator or NUL bytes before composing the target namespace. A '.' embedded in the database-name argument shifts the intended database/collection boundary, causing operations to target a different collection or database entirely. A NUL byte exploits C string-handling semantics to silently truncate the name. The affected component is libmongoc; CPE cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:* covers all versions prior to the 2.5.1 fix.
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:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable application accepts user input as name components (AV:N, PR:L); impact is limited to misdirected read/write with no scope change or availability loss.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
A weakness in the MongoDB C Driver allows special elements in caller-supplied database and collection name components to pass without sanitization when the driver composes the target namespace for an operation. An application that incorporates untrusted input into these name components can have operations directed at a resource other than the one intended.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
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
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
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
EUVD-2026-67208
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB