ZeroHour

CVE-2026-88026

mass

Regex injection in MongoDB C# Driver LINQ translation allows filter bypass

CVSS 4.0
7.1 high
EPSS
Published
()
Modified
AI analysis

The MongoDB C# Driver fails to properly neutralize regular-expression metacharacters when translating LINQ queries, allowing caller-supplied characters to alter the regex predicate the driver generates for the database. An authenticated user who can influence a value used in a regex-based filter (for example, a search field mapped through LINQ) can inject metacharacters into the generated regex query. The altered predicate matches records beyond those the original filter intended, so the attacker gains unauthorized read access to data (high confidentiality impact, with no integrity or availability impact per the CVSS 4.0 score). Affected parties are applications built on the MongoDB C# Driver that pass user-controlled input into regex/LINQ query filters; exploitation requires only network access and low-level credentials. There is no public proof-of-concept, the issue is not in CISA's KEV catalog, and no exploitation is currently known.

What to do: Audit .NET applications for LINQ queries in which user-controlled input feeds regex-based filters (e.g., patterns translated to $regex) and treat those as exposed. Upgrade the MongoDB C# Driver to the fixed version once identified in MongoDB's advisory (specific versions are not provided in the available data). As interim mitigation, escape or sanitize regex metacharacters in user input before it reaches LINQ regex filters, and verify that query results conform to the intended filter.

Affected
MongoDB C# Driver (LINQ query translation component)
Estimated exposure
masslikely >1M end users across 100k+ application deployments (MongoDB.Driver has hundreds of millions of cumulative NuGet downloads) — The MongoDB.Driver NuGet package has been downloaded hundreds of millions of times and MongoDB is among the most widely used document databases in .NET applications, implying deployments well above the mass threshold, though only…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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.

Weakness
CWE-943
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.