Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to application layer
-
DeliverySubmit crafted replacement document embedding MongoDB operators
-
ExploitDriver skips element-name validation
-
ExecutionPayload forwarded unfiltered to MongoDB server
-
PersistServer executes injected operators as update logic
-
ImpactAttacker achieves unauthorized read or modification of database documents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | Three concrete conditions must all be met: (1) The application uses MongoDB.Driver (C NuGet) in a version prior to 3.11.1. (2) The application performs document-replacement operations (ReplaceOne, ReplaceOneAsync, or equivalent) using loosely-typed input - specifically BsonDocument, Dictionary-based types, or dynamic objects - rather than strongly-typed Cmodel classes; the CVE description explicitly states strongly-typed document mappings are not affected, making this a hard prerequisite. (3) The attacker can supply input that reaches the replacement operation, requiring at minimum application-level authenticated access (consistent with CVSS PR:L). Exploitation is limited by: requirement for PR:L authenticated access rather than unauthenticated network access; the restriction to loosely-typed code paths, which excludes a significant portion of well-typed .NET applications; and impact bounded to the application's own database credentials, constraining the blast radius to permissions already granted to the application's database user. |
| Impact | The CVSS 4.0 score of 5.3 (Medium) with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N captures real but bounded risk. PR:L is the key limiter: the attacker must possess authenticated access at the application layer sufficient to supply input that reaches a replacement operation. Impact is Low on both confidentiality and integrity on the vulnerable system, with no availability or subsequent-system impact, limiting the blast radius to data-level manipulation within the application's own database permissions. No EPSS score was provided in the source data; neither a KEV listing nor a public proof-of-concept has been identified, reducing operational urgency. The vulnerability is architecture-dependent - it does not affect strongly-typed C model-based code paths, narrowing the real-world exploitable population to applications that accept loosely-typed replacement documents from user-controlled input. Organizations with MongoDB-backed APIs that pass raw BsonDocument or Dictionary inputs directly into replacement operations should treat this as a medium-priority patch given the ease of exploitation once the attacker has application-level access, while those exclusively using typed mappings can deprioritize accordingly. |
| Exploit ScenarioDerived | An attacker with authenticated access to an application API endpoint that accepts JSON document input crafts a replacement payload containing MongoDB update operators - for example, substituting a legitimate replacement body with {"$set": {"role": "administrator"}} or {"$unset": {"auditLog": ""}}. Because the C driver forwards the replacement to MongoDB without neutralizing the '$'-prefixed operator keys, the server executes the injected logic under the application's database credentials, allowing unauthorized modification or disclosure of database contents. No public proof-of-concept has been identified at time of analysis, but the attack pattern is well-understood by practitioners familiar with NoSQL injection techniques. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 27, 2026
NoSQL injection in the MongoDB C
Driver's document-replacement code path allows network-accessible, low-privileged attackers to inject MongoDB query-language operators into database operations. The driver omits the element-name and shape validation applied by other write paths, so untrusted loosely-typed input (BsonDocument, Dictionary, dynamic) is forwarded to the MongoDB server unfiltered, enabling attacker-controlled data to be interpreted as update logic under the application's own database credentials. No public exploit or CISA KEV listing has been identified at time of analysis; exploitation is bounded to applications that use loosely-typed replacement patterns rather than strongly-typed C
document mappings.
RemediationAI
Upgrade MongoDB.Driver to version 3.11.1 or later via NuGet (https://www.nuget.org/packages/MongoDB.Driver/3.11.1), which reintroduces element-name and shape validation for the document-replacement code path. Where an immediate upgrade is not feasible, refactor replacement operations to use strongly-typed C
model classes rather than BsonDocument, Dictionary<string, object>, or dynamic types - the vulnerability is explicitly absent from the strongly-typed mapping path, making this a robust interim mitigation with the trade-off of requiring code changes and schema rigidity. As an additional application-layer control, validate replacement documents at the API boundary to reject any input whose keys begin with '$' or match known MongoDB operator patterns before passing them to driver calls; this is not a complete fix (the driver should perform this neutralization itself) but adds defense-in-depth. The NuGet package page (https://www.nuget.org/packages/MongoDB.Driver/3.11.1) is the authoritative patch reference; no separate vendor advisory URL was provided in the source data.
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 (NuGet package MongoDB.Driver) exposes document-replacement operations such as ReplaceOne and ReplaceOneAsync. Other write paths in the driver apply element-name and shape validation to neutralize MongoDB query-language special elements (operators prefixed with '$', such as $set, $unset, $inc, $push). The replacement code path omits this validation, meaning a caller-supplied replacement document is serialized and sent to the MongoDB server verbatim. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) describes this root cause precisely: when user-controlled data containing query-language operators reaches the database engine without neutralization, the engine interprets those operators as query or update logic rather than as literal data values. The CPE cpe:2.3:a:mongodb:c#_driver:*:*:*:*:*:*:*:* indicates all versions prior to the fix are in scope. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) reflects that exploitation is network-reachable, requires no special preconditions beyond low privileges, and needs no user interaction once the attacker can supply input to the vulnerable code path.
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
AC:H reflects that exploitation requires the target application to use loosely-typed replacement patterns; PR:L because application-layer authenticated access is needed to reach the vulnerable code path.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
A MongoDB C
driver document-replacement code path omits the element-name/shape validation that the equivalent write paths apply, so a value supplied as a replacement is forwarded to the server without neutralization of query-language special elements. An application that passes untrusted, loosely-typed input as a replacement value therefore allows that input to be interpreted by the database as update logic rather than as data, executing under the application's own database credentials. Applications using strongly-typed document mappings are not affected.
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.
NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.
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-67212
GHSA-3jfm-hm2c-wrqh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB