Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to target .NET application
-
DeliverySubmit crafted input containing regex metacharacters
-
ExploitLINQ provider translates input into unescaped MongoDB regex predicate
-
ExecutionMongoDB returns records matching the expanded pattern
-
ImpactAttacker reads unauthorized documents from collection
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 an authenticated session with at least low privilege (PR:L) in the target application. The application must be built on the MongoDB C Driver's LINQ provider - applications using the low-level BSON driver API directly or using string-based query construction with manual escaping are not affected. The specific vulnerable code path must incorporate user-controlled input into a LINQ expression that causes the driver to generate a MongoDB regex predicate (e.g., via String.Contains, Regex.IsMatch, or similar pattern-matching constructs in LINQ). Limiting factors: authentication is required and unauthenticated exploitation is not possible per the CVSS 4.0 PR:L metric; the application must expose the regex-generating LINQ code path to user input; and impact is bounded to read-only record disclosure within the queried MongoDB collection. |
| Impact | The CVSS 4.0 score of 7.1 with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N is an accurate reflection of the risk profile: network-reachable, low complexity, no special attack requirements, requiring only a low-privilege authenticated session, with high confidentiality impact but no integrity or availability component. No EPSS score, KEV listing, or POC exploit code is present in available data, leaving exploitation likelihood unquantified by external signals; however, the attack class is well-understood and the technique requires no specialized tools. Even a mid-sized municipal IT team in zabrze running a .NET application with MongoDB-backed LINQ search endpoints should treat this as an urgent access-control review if any user-controlled input flows into regex predicates. The primary constraint on real-world impact is that exploitation is scoped to what data the MongoDB collection contains and which records the attacker can retrieve through the manipulated filter - write-injection (integrity) and denial of service are not possible via this flaw alone. The CPE wildcard version range ('*') indicates no fixed version has been identified in NVD metadata, elevating urgency until the CSHARP-6177 fix version is confirmed. |
| Exploit ScenarioDerived | An authenticated user of a .NET web application submits a search value such as '.*' or 'prefix.*|.*' through a search or filter endpoint. The application passes this value directly into a LINQ expression like 'collection.Where(x => Regex.IsMatch(x.Name, userInput))', which the MongoDB C Driver translates into a MongoDB regex query. The resulting regex matches far more documents than intended, and the attacker receives records belonging to other tenants, users, or sensitive categories they were not authorized to view. No public exploit code has been identified, but the technique is trivially constructable by any developer familiar with regex syntax. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 10, 2026
Regex metacharacter injection in the MongoDB C
Driver's LINQ query translation layer allows an authenticated low-privilege user to alter generated regular-expression predicates, causing the application to return database records beyond those the original filter was designed to expose. The vulnerability, reported by MongoDB and tracked under CSHARP-6177 (CWE-943), requires only network access and a low-privilege account - making it a meaningful access-control risk in any .NET application that incorporates user input into LINQ regex-based queries against MongoDB. No public exploit has been identified at time of analysis, and no EPSS or KEV data is present in available intelligence.
RemediationAI
Upgrade the MongoDB C
Driver to the version identified in MongoDB Jira CSHARP-6177 (https://jira.mongodb.org/browse/CSHARP-6177) as resolving this issue; the precise fixed release must be confirmed directly from the ticket, as no patched version number is encoded in currently available NVD or CPE data. As a compensating control prior to patching, developers should apply Regex.Escape() to any user-controlled string before it is incorporated into a LINQ expression that generates a MongoDB regex predicate; note that this changes matching semantics (the input is treated as a literal string, not a pattern), which may require application-level adjustments. Where possible, replace regex-generating LINQ predicates with exact equality or prefix-match operators that do not involve regex construction, eliminating the attack surface entirely. Additionally, enforce output filtering at the application layer - validate that returned records match the original intent of the query - as a defense-in-depth measure against any bypass.
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 (CPE cpe:2.3:a:mongodb:c#_driver:*:*:*:*:*:*:*:*) provides a LINQ provider that translates C
language-integrated query expressions into MongoDB BSON query operations. When a LINQ predicate involves a string-pattern or regex-based filter, the driver constructs the corresponding MongoDB regular-expression operator. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic - NoSQL) applies directly: if user-supplied character sequences are embedded in the query path without escaping regex metacharacters such as '.', '*', '?', '[', ']', '(', ')', '^', and '$', an attacker can inject characters that fundamentally alter the compiled regex. A filter intended to match documents with prefix 'acct-123' could be widened to match all documents if input like '.*' is injected. Unlike classic SQL injection, this flaw does not allow arbitrary command execution - it is scoped to the confidentiality impact of expanded record access within the MongoDB collection being queried.
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:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable via application endpoint, low privileges required per description, no scope change, high confidentiality impact from unauthorized record disclosure, no integrity or availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
DescriptionCVE.org
Improper neutralization of regular-expression metacharacters in the LINQ query translation component of the MongoDB C
Driver can cause a caller-supplied character sequence to alter a regular-expression predicate generated by an affected application. An authenticated user who can influence such a value may cause the application to return records beyond those intended by the original filter.
Articles & Coverage 2
Executive ViewAI
The MongoDB C
Driver contains a regex injection vulnerability in its LINQ translation layer that allows low-privilege authenticated users to bypass query filters and access database records beyond their authorization scope. This affects all .NET applications using the vulnerable driver, particularly those incorporating user input into LINQ regex predicates. Organizations must identify and remediate at-risk applications immediately to prevent unauthorized data disclosure.
No vendor-released patch identified at time of analysis. Interim mitigations: sanitize and validate all user input before LINQ query construction to filter regex metacharacters; restrict or disable LINQ regex query functionality where feasible; enforce granular role-based access controls to limit unauthorized data exposure; implement query auditing to detect anomalous regex patterns indicating exploitation; segment database credentials and access by application classification and data sensitivity.
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-75640
GHSA-j7j2-rrxf-5xvf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB