Read the docs

Remote code execution via type allow-list bypass in MongoDB C# Driver

Priority LOW 35CWE-502Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00299 22nd percentileScored 2026-11-16
Fix Fixed C# Driver (MongoDB): 3.14.0

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

VendorProductAffected versionsFixed inStatusSource
MongoDBC# Driver3.2.0 to before 3.14.03.14.0Patch availableCNA
  • C# Driver VendorMongoDB Affected 3.2.0 to before 3.14.0 Fixed in 3.14.0 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:mongodb:c\#_driver:*:*:*:*:*:*:*:*——MongoDB
  • cpe:2.3:a:mongodb:c\#_driver:*:*:*:*:*:*:*:* Versions — — ·MongoDB

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

  1. 2026-11-13 Threatist record created from CVE-2026-126982
  2. 2026-11-13 Alias added: GHSA-vjj2-chwg-8r8c
  3. 2026-11-16 CISA SSVC decision points changed
  4. 2026-11-17 CISA SSVC decision points changed

References

  • 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
See all 411 →

Sources