Skip to main content

MongoDB C# Driver CVE-2026-126982

| EUVDEUVD-2026-124807 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-11-13 mongodb GHSA-vjj2-chwg-8r8c
7.7
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Plant crafted BSON/JSON in app-read source
  2. Delivery
    Trigger deserialization into polymorphic member
  3. Exploit
    Bypass type allow-list check
  4. Execution
    Instantiate gadget .NET type with attacker values
  5. Impact
    Execute arbitrary code in app context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires two concrete preconditions: (1) the application must deserialize BSON or JSON originating from a source an unauthorized party can supply or plant, into a loosely typed or polymorphic member handled by the driver's BSON serialization library (the point where the type allow-list is meant to apply); and (2) the application's loaded assemblies must contain a suitable deserialization gadget type for the controlled instantiation to escalate to arbitrary code execution. Limiting factors: exploitation is rated AC:H precisely because a usable gadget must already be present; the vendor vector encodes PR:L (some privilege) even though the description says only the ability to introduce readable data is needed; and applications that deserialize only trusted data or into strongly/explicitly typed members are not exposed. Impact short of RCE (type confusion, data corruption) is still possible where no gadget is present.

Impact

Signals point to a credible but conditional, not emergency, priority. The vendor-supplied CVSS 4.0 vector (AV:N/AC:H/AT:N/PR:L/UI:N, VC/VI/VA:H, score 7.7) describes a network-reachable deserialization flaw (CWE-502) with full confidentiality/integrity/availability impact but HIGH attack complexity, reflecting that exploitation is contingent on the presence of a usable gadget type in the application. The vuln.today decision label is 'this_week', consistent with a serious-but-not-drop-everything issue. No CISA KEV entry, no EPSS score, and no verified exploit code are present in the input, so there is no public evidence of active exploitation - status: no public exploit identified at time of analysis (the sole reference is the MongoDB JIRA tracking ticket CSHARP-6160, not working exploit code). Two signals conflict and should be verified with the vendor: the CVSS vector encodes PR:L (authenticated) while the description states 'No special privileges beyond the ability to introduce data the application reads are required,' which reads closer to PR:N - the real privilege requirement depends on how attacker data reaches the deserializer in a given deployment. Net: a legitimate same-week remediation target for .NET shops using this driver on untrusted BSON/JSON, but real-world RCE further depends on an application actually containing a suitable gadget type, which tempers mass-exploitation likelihood.

Exploit ScenarioDerived

An application using the MongoDB C

Driver deserializes BSON/JSON from a source an unauthorized party can supply or plant (e.g. a stored document, message queue, or cache) into a loosely typed or polymorphic member. By abusing the type allow-list bypass, the attacker causes the driver to instantiate a .NET type outside the intended allow-list and populate it with controlled values; if a suitable gadget type is loaded, this yields arbitrary code execution in the application's context. No verified public exploit exists; the CVSS AC:H reflects the dependency on a usable gadget being present.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Type allow-list bypass in the MongoDB C

Driver's BSON serialization library allows attacker-supplied or attacker-planted BSON/JSON to instantiate .NET types outside the intended restriction list when polymorphic data is deserialized into loosely typed members. Applications are only exposed when they deserialize data from a source an unauthorized party can influence into such members and their loaded assemblies happen to contain a suitable gadget type; with such a gadget, the driver's controlled instantiation can escalate to arbitrary code execution with full loss of confidentiality, integrity, and availability, while without one the outcome is limited to type confusion or data corruption. Exploitation is conditional rather than trivial - the vendor scores it 7.7 with AC:H and rated priority is this_week - and no public exploit code or confirmed active exploitation was identified at time of analysis; patched versions are not specified in the available data, with tracking handled in vendor Jira CSHARP-6160.

RemediationAI

The supplied data contains no fixed driver version and no vendor advisory text beyond the tracking issue, so no patch version can be quoted here: monitor https://jira.mongodb.org/browse/CSHARP-6160 for the vendor's stated fixed release and upgrade to that exact version once published, since the vendor's position per this report is not yet captured. Until a fixed release is confirmed, the reduction that follows directly from the assessment is to stop feeding untrusted input into the vulnerable path: do not deserialize BSON or JSON from sources an unauthorized party can supply or plant into loosely typed members such as object or dynamic, or into polymorphic hierarchies that rely on document-carried type discriminators. The trade-off is loss of schema flexibility - polymorphic document models and loosely typed projections must be replaced with strongly and explicitly typed DTOs, which requires code and model changes rather than a configuration toggle. Where polymorphic deserialization from untrusted documents is unavoidable, the remaining control is to constrain the type surface available to the serializer (a narrower registered type set) and to audit loaded assemblies for gadget types that would convert controlled instantiation into code execution, accepting that neither measure removes the underlying allow-list bypass. Changing the PR:L reading in the vendor vector does not alter these steps, and because exploitation is rated AC:H and requires a pre-existing gadget, prioritization should follow the this_week decision label rather than emergency handling.

Affected VersionsENISA

C# Driver 3.2.0 <3.14.0

Affected Packages

euvd c_driver fix: 3.14.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The MongoDB C

Driver ships a BSON serialization library that maps BSON and extended JSON documents onto .NET objects, including polymorphic hierarchies where the concrete type is resolved from discriminator data carried in the document itself. Because that discriminator originates from the payload, the driver maintains a type allow-list intended to bound which types may be materialized during deserialization. CVE-2026-126982 is a CWE-502 (Deserialization of Untrusted Data) flaw in which that restriction is circumvented when data is bound to loosely typed members - the case where the declared member type is broad enough that the serializer's type-resolution path is exercised rather than a fixed, statically known target type. An unauthorized party able to supply or plant the BSON/JSON that the application later reads can therefore cause the process to instantiate .NET types outside the allow-list and populate their members with attacker-chosen values; if an appropriate gadget type is present in the application's loaded assemblies, that controlled object graph construction reaches arbitrary code execution. The CPE entry (cpe:2.3:a:mongodb:c#_driver) is unversioned in the supplied data, so no per-branch affected version range can be stated; the advisory reference is the vendor Jira issue CSHARP-6160. Per the independent assessment, the exploitation gate is environmental as much as technical: payload control plus a reachable gadget. The vendor's CVSS 4.0 vector encodes AC:H and PR:L, whereas the assessed CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H) agrees on high impact but treats the triggering condition as hard to satisfy rather than as a need for meaningful privileges; the description itself claims no special privileges beyond the ability to introduce readable data, so the PR:L rating should be read as a disagreement point between the vendor vector and the narrative rather than as a confirmed requirement for an authenticated foothold.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 7.7 HIGH
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network-supplied data (AV:N); AC:H because exploitation depends on a suitable gadget type being present; PR:L retained per vendor despite description implying lower; full C/I/A impact via code execution, no scope change.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 01:01 EUVD
CVE Published
Nov 13, 2026 - 00:00 cve.org
HIGH 7.7

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A high-severity vulnerability in the MongoDB C

Driver's BSON serialization library enables type allow-list bypass, potentially leading to remote code execution under specific conditions. While no public exploit code or active exploitation has been identified, the impact could be severe if exploited, affecting confidentiality, integrity, and availability of applications using the driver. Development and security teams should prioritize remediation due to the potential for full system compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include validating and sanitizing all untrusted BSON/JSON inputs, avoiding deserialization into loosely typed members, and restricting the types allowed during deserialization. Additionally, monitor for anomalous type instantiation and apply network segmentation to limit exposure.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
official MongoDB .NET driver, common in .NET shops using MongoDB
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy