MongoDB C# Driver
Silent client-side encryption bypass via unescaped field-name regex in CSFLE schema builder
A client-side encryption schema construction component in the MongoDB C# Driver places caller-supplied field identifiers into a position that is interpreted as a pattern expression, without normalizing or validating them. As a result, an application that designates certain fields for client-side field-level encryption may have the protection silently fail to apply, so data intended to be encrypted is stored and returned in cleartext; conversely, the rule may apply more broadly than intended. No user action is required to cause the condition, and any party with ordinary read access to the stored data — without possession of the encryption keys — can observe the unprotected values.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.5.0, < 3.13.0
Fixed in 3.13.0
Mitigation
Upgrade C# Driver to 3.13.0 or later.
References
- Release notes github.com/mongodb/mongo-csharp-driver/release…
- Vendor advisory github.com/mongodb/mongo-csharp-driver/securit…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.