Remote code execution via type allow-list bypass in MongoDB C# Driver
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502.
Summary
The MongoDB C# Driver from 3.2.0 before 3.14.0 has a type allow-list bypass in its BSON serialization library (CWE-502). Polymorphic data deserialized into loosely typed members skips the type-restriction check. An attacker who can supply or plant BSON or JSON data that the application reads can make it instantiate .NET types outside the allow-list and populate them with attacker-controlled values. In applications with a suitable gadget type, this leads to arbitrary code execution.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
A type allow-list bypass in the BSON serialization library of the MongoDB C# Driver allows a type-restriction check to be circumvented when polymorphic data is deserialized into loosely typed members. An unauthorized party who can supply or plant BSON/JSON data that the application later deserializes can cause the application process to instantiate .NET types outside the intended allow-list and populate them with unauthorized party-controlled values. In applications that contain a suitable gadget type, this can lead to arbitrary code execution in the context of the application, with corresponding loss of confidentiality, integrity, and availability. No special privileges beyond the ability to introduce data the application reads are required.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Update MongoDB C# Driver to version 3.14.0, the fixed version.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA C# Driver (MongoDB) Fixed in 3.14.0
Timeline
- 2026-11-13 Threatist record created from CVE-2026-126982
- 2026-11-13 Alias added: GHSA-vjj2-chwg-8r8c
- 2026-11-16 CISA SSVC decision points changed
- 2026-11-17 CISA SSVC decision points changed
References
More MongoDB vulnerabilities
- TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
- TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
- TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
- TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
- TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-126982 · CVE Program
- CVE-2026-126982 · NVD
- FIRST EPSS
- GHSA-vjj2-chwg-8r8c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences