Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed application endpoint accepting user input
-
DeliverySupply crafted input containing MongoDB operator/expression syntax
-
ExploitApplication passes unsanitized value into LINQ-to-aggregation translation
-
ExecutionDriver transmits manipulated query to MongoDB
-
PersistDatabase executes altered query logic
-
ImpactAttacker receives unintended records or bypassed filter results
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | Exploitation requires that the target application uses the MongoDB C Driver's LINQ-to-aggregation or query filter translation layer, AND that application-supplied (i.e., user-controlled) values are embedded into the affected LINQ query constructs without independent sanitization. Applications that use the MongoDB query builder API without passing user input through LINQ translation, or that sanitize inputs before query construction, are not vulnerable. Authentication requirements depend entirely on the application: the driver-level flaw itself operates without any credential check (PR:N in CVSS), but the attacker must be able to reach an application endpoint that feeds user input into an affected query. Exploitation is limited to data disclosure and query result manipulation - no code execution is implied. Specific platform or OS prerequisites do not apply; the vulnerability is in the cross-platform .NET library. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) signals that exploitation requires no authentication, no special configuration, and no user interaction - a low-friction attack for any application that exposes user input paths into affected LINQ queries. However, the impact metrics (VC:L/VI:L/VA:N) are deliberately modest: the vulnerability enables unintended data disclosure and query result manipulation, not full compromise, remote code execution, or availability loss. EPSS data is not available in the provided intelligence. KEV status is absent, and no public proof-of-concept is referenced. The realistic risk is application-dependent: only codebases that use the driver's LINQ-to-aggregation or query filter translation with user-controlled input are exposed. Applications using parameterized or builder-pattern queries that do not pass raw user values through the affected translation paths are not at risk. The principal concern is data exfiltration via filter bypass, where an attacker could retrieve records outside their intended access scope. |
| Exploit ScenarioDerived | An attacker submitting a search or filter request to a .NET web application discovers that the application passes user-supplied search terms directly through a LINQ-to-MongoDB aggregation query. By embedding MongoDB query operators or expression syntax within their input, the attacker alters the query's filter logic - for example, causing a membership or ownership filter to be bypassed - and receives records belonging to other users. No public proof-of-concept is identified at time of analysis, but the injection class is well understood and low complexity to exploit once an injection point is identified. |
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 LINQ-to-aggregation translation layer allows network-accessible, unauthenticated attackers to manipulate database queries by embedding special elements in application-supplied values. Affected applications using LINQ query constructs that incorporate user-controlled input fail to properly escape those values before transmission to MongoDB, enabling query logic injection. The CVSS 4.0 score of 6.9 (AV:N/AC:L/PR:N/UI:N) reflects broad reachability with limited but real data confidentiality and integrity impact; no public exploit or CISA KEV listing is identified at time of analysis.
RemediationAI
Upgrade the MongoDB.Driver NuGet package to version 3.11.1 or later, available at https://www.nuget.org/packages/MongoDB.Driver/3.11.1. Update the package reference in .csproj files (e.g., <PackageReference Include="MongoDB.Driver" Version="3.11.1" />) and rebuild affected applications. As a compensating control where immediate upgrade is not feasible, audit all LINQ query constructs that incorporate user-supplied values and apply explicit allow-list input validation before those values enter affected query paths - rejecting inputs containing MongoDB operator characters (e.g., $, ., {, }). Note that input filtering is brittle and should not replace patching; it may break legitimate use cases. Additionally, applying principle-of-least-privilege at the database level (restricting the application's MongoDB user to only required collections and operations) limits the data an attacker can access or manipulate via injected queries.
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 vulnerability resides in the LINQ-to-aggregation query translation layer of the MongoDB C
Driver (CPE: cpe:2.3:a:mongodb:c#_driver:*:*:*:*:*:*:*:*), the official .NET client library for MongoDB. LINQ (Language Integrated Query) expressions in C
are translated at runtime into MongoDB aggregation pipeline stages and query filter documents. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) identifies the root cause: user-supplied string values embedded in affected LINQ constructs are passed into the translated query without sufficient escaping or sanitization, allowing MongoDB query operators or expression syntax to bleed through from data into the query logic plane. This is the NoSQL analogue of SQL injection, where the document query language, rather than SQL, is the injection target.
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:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable injection with no auth or interaction required; impact limited to partial data disclosure and query result alteration, scope unchanged.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
A NoSQL/expression injection weakness exists in the LINQ-to-aggregation query translation layer of the MongoDB C
Driver, in both aggregation expression and query filter translation. When application-supplied values are embedded in certain query constructs, special elements contained within those values are not properly escaped before the resulting query is transmitted to the database, so portions of the value may be interpreted by the database as query logic rather than as data. A user able to supply values that an application incorporates into an affected query may thereby cause unintended data to be returned or query results to be altered.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
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-67211
GHSA-qvhj-5652-cjrg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB