Deserialization allow-list bypass via anonymous-type misdetection in BSON object deserialization
- CVE-2026-126839
- GHSA-48g7-vc36-5wgx
- EUVD-2026-124806
Description
A deserialization type-restriction control in the BSON serialization component can be bypassed because the check used to recognize a class of compiler-generated types relies on an overly permissive heuristic rather than a precise identification. An unauthorized party able to supply BSON content that an application later deserializes into a loosely typed member can cause types outside the intended allow-list to be constructed and populated with unauthorized party-supplied values inside the consuming application. This can lead to unexpected object state and errors in downstream application logic. No elevated privileges beyond the ability to place unauthorized party-influenced content in the deserialization path are required.
Text from the CVE.org record.
Recommendation
MongoDB C# Driver
- If you run a version from 2.21.0 to before 3.14.0update to 3.14.0 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
MongoDB C# Driver
Affected versions Fixed in from 2.21.0 to before 3.14.0 3.14.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.