Skip to main content

MongoDB C# Driver CVE-2026-126839

| EUVDEUVD-2026-124806 LOW
Deserialization of Untrusted Data (CWE-502)
2026-11-12 mongodb GHSA-48g7-vc36-5wgx
2.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Gain ability to supply BSON input
  2. Delivery
    Craft BSON referencing disallowed type
  3. Exploit
    Bypass permissive type-recognition heuristic
  4. Execution
    Driver constructs and populates unexpected type
  5. Impact
    Corrupted object state breaks downstream logic

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

Exploitation requires (1) an application built on the MongoDB C

driver that deserializes externally-influenced BSON into a loosely typed / weakly-typed member, and (2) the attacker having the ability to place attacker-influenced BSON content into that deserialization path (reflected as PR:L and AT:P in the CVSS 4.0 vector). It does NOT require elevated privileges beyond that content-placement ability, and no user interaction is needed (UI:N). Limiting factors: applications that deserialize only into strongly/explicitly typed members are not affected; impact is bounded to unexpected object state and downstream errors (VI:L/VA:L), with no confidentiality exposure and, per the description, no demonstrated code execution. The precise trigger mechanism for the heuristic bypass is not detailed in the available sources.

Impact

All signals point to genuinely low real-world risk, and they are consistent rather than conflicting. The input CVSS 4.0 base score is 2.3 (Low) with vector AV:N/AC:L/AT:P/PR:L/UI:N and impact limited to VI:L/VA:L (low integrity and availability, no confidentiality). The vuln.today Decision label is 'monitor' - the lowest urgency tier - not act_now or emergency. There is no CISA KEV listing, no EPSS score supplied, and no public exploit identified (the sole reference is a MongoDB JIRA tracking ticket, CSHARP-6169, not exploit code). The flaw is a type-restriction bypass in BSON deserialization (CWE-502): an overly permissive heuristic for recognizing compiler-generated types lets an attacker construct types outside the intended allow-list, leading to unexpected object state and downstream logic errors - per the description it does NOT yield code execution, which is why both integrity and availability are rated Low and confidentiality is None. Exploitation also requires AT:P (an attack requirement) and PR:L (some level of access to place content in the deserialization path), further narrowing applicability. This is a high-attention-vendor but low-real-risk issue: a correctly-scored minor hardening fix, not a priority for emergency patching. Note the input tags label this a 'C Driver' bug, but both the CPE (cpe:2.3:a:mongodb:c#_driver) and the reference (CSHARP-6169) confirm it is the MongoDB .NET/C

driver - this should be corrected before routing.

Exploit ScenarioDerived

An application using the MongoDB C

driver deserializes attacker-influenced BSON into a loosely typed member (e.g. an object or weakly-typed field). An attacker who can place BSON content into that deserialization path abuses the imprecise type-recognition heuristic to have a type outside the intended allow-list instantiated and populated with their values, corrupting object state and triggering errors in downstream logic. No public exploit identified at time of analysis - the only reference is the MongoDB JIRA ticket.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 13, 2026

BSON deserialization in the MongoDB C

Driver can be pushed past its type-restriction allow-list, letting attacker-influenced BSON construct and populate types that the control was meant to reject inside the consuming application. Only applications that deserialize externally-influenced BSON into loosely typed or weakly typed members are exposed; the attacker must already be able to place that content into the deserialization path (that placement capability is what the vectors score as PR:L, with Attack Requirements marked Present), and the outcome is bounded to unexpected object state and downstream logic errors with low integrity and availability impact, no confidentiality exposure and no demonstrated code execution. Severity is low (CVSS 4.0 base 2.3; independent assessment CVSS 3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L), there is no CISA KEV listing and no public exploit identified at time of analysis, and the priority signal is monitor.

RemediationAI

No fixed driver version is identified in the available data, so confirm the vendor's fix status and version matrix in MongoDB Jira issue CSHARP-6169 (https://jira.mongodb.org/browse/CSHARP-6169) before planning an upgrade, and treat any driver build released after that ticket is resolved as the candidate fix rather than assuming a version number. Where an immediate driver update is not possible, the actionable control supported by the assessment is to remove loosely typed and weakly typed members from BSON deserialization paths - bind incoming documents to explicit, strongly typed classes so the vulnerable construction path is never reached; applications that deserialize only into explicitly typed members are not affected. The trade-off is that this requires a known schema per payload and will reject or fail on legitimately polymorphic documents that previously relied on loose binding, so those flows need an explicit, reviewed type mapping instead. Restricting who and what can place BSON content into those deserialization paths also reduces exposure, since the vector scores the attacker as needing that content-placement capability (PR:L); the cost is tighter coupling with upstream producers and possible friction for legitimate integrations. Given the monitor priority, low severity and the absence of confirmed exploitation, remediation can be scheduled rather than emergency-driven, but the driver version in use should still be inventoried against CSHARP-6169 so affected deployments are known.

Affected VersionsENISA

C# Driver 2.21.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 serializes and deserializes BSON, the binary document format used by MongoDB, and maps documents onto .NET objects. To keep arbitrary payload-supplied type names from instantiating unwanted classes, the component maintains a type-restriction control that must decide whether a candidate type is acceptable. According to the description, that decision relies on an overly permissive heuristic for recognizing a class of compiler-generated types rather than a precise identification of them, so crafted BSON referencing such a type can slip types past the allow-list when the payload is bound to a loosely typed member. The root cause class is CWE-502 (Deserialization of Untrusted Data) - the flaw is in the type gate that is supposed to constrain deserialization, not in BSON parsing itself. The precise trigger mechanism for the heuristic bypass is not described in the available sources, and the CVSS 4.0 vector's AC:L/AT:P ratings reflect that a vulnerable loosely typed deserialization path must exist rather than a described exploitation technique. Impact stays at the object-state level: unexpected populated members on instantiated types, with VI:L and VA:L and no SC/SI/SA movement in the 4.0 scoring. The affected CPE is cpe:2.3:a:mongodb:c#_driver, with no version boundaries enumerated in the supplied data.

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 2.3 LOW
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 4.2 MEDIUM

Network-reachable deserialization path (AV:N) but requires an app that deserializes into a loosely typed member and attacker content placement, so AC:H and PR:L; only low integrity/availability impact, no confidentiality.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 01:01 EUVD

DescriptionCVE.org

A deserialization type-restriction control in the BSON serialization component can be bypassed because the check used to recognize a class of compiler-generated types relies on an overly permissive heuristic rather than a precise identification. An unauthorized party able to supply BSON content that an application later deserializes into a loosely typed member can cause types outside the intended allow-list to be constructed and populated with unauthorized party-supplied values inside the consuming application. This can lead to unexpected object state and errors in downstream application logic. No elevated privileges beyond the ability to place unauthorized party-influenced content in the deserialization path are required.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
official MongoDB .NET driver, common but limited to C#/MongoDB stacks
Social Media
1
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 LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
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.

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