cvelo
P2 · HighCVSS 7.5EPSS 0.4%

Remote code execution via generic-type allow-list bypass in BSON object deserialization

  • CVE-2026-126982
  • GHSA-vjj2-chwg-8r8c
  • EUVD-2026-124807

Description

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.

Text from the CVE.org record.

Recommendation

  • MongoDB C# Driver

    • If you run a version from 3.2.0 to before 3.14.0update to 3.14.0 or laterMinor version change: check the release notes

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 versionsFixed in
    from 3.2.0 to before 3.14.03.14.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.