C# Driver: Silent client-side encryption bypass via unescaped field-name regex in CSFLE schema builder
What fixes it
- 3.13.0C# DriverCVE List
- 3.13.0MongoDB.Driver.Encryption, nugetGitHub
dotnet add package MongoDB.Driver.Encryption --version 3.13.0
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
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.
Text from CVE List
Affected versions 2
- C# Driveraffected: 3.5.0 before 3.13.0CVE List
- MongoDB.Driver.Encryption, nuget>= 3.5.0, < 3.13.0GitHub