Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlant crafted BSON/JSON in app-read source
-
DeliveryTrigger deserialization into polymorphic member
-
ExploitBypass type allow-list check
-
ExecutionInstantiate gadget .NET type with attacker values
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
EUVD-2026-124807
GHSA-vjj2-chwg-8r8c
NVD
CVE.org
EPSS
VulDB
Exploit-DB