Skip to main content

MongoDB C# Driver CVE-2026-114654

| EUVDEUVD-2026-108328 MEDIUM
Incorrect Conversion between Numeric Types (CWE-681)
2026-10-22 cna@mongodb.com
6.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Reach app endpoint parsing untrusted text
  2. Delivery
    Supply out-of-range binary subtype value
  3. Exploit
    Bypass BsonBinaryData/reader integrity guards
  4. Execution
    Subtype narrowed during BSON encoding
  5. Impact
    Persist malformed binary elements downstream readers misread or reject

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

The affected application must parse attacker-supplied textual input into BSON binary elements - via the JSON reader's BinData, HexData, or legacy $type syntax, or by constructing a BsonBinaryData - using a binary subtype value outside the valid 0-255 range, and must then encode and persist that data. Exploitation therefore requires a code path that accepts untrusted text and writes it back out as BSON; it is limited to driver versions 2.0.0 up to but not including 3.13.0, and the realistic impact is data corruption (malformed/under-length binary elements) that later readers reject or silently truncate, not code execution, disclosure, or authentication bypass.

Impact

This is a moderate, integrity-focused issue rather than a top-priority emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 6.9 and indicates a remote, low-complexity, unauthenticated reach, but impact is deliberately narrow: VC:N (no confidentiality loss), VI:L and VA:L (limited integrity and availability effects), with no scope change. The real-world effect per the vendor is BSON output corruption - malformed binary elements that downstream readers reject or misread - not code execution, data disclosure, or access-control bypass. No EPSS score, KEV listing, or POC reference is present in the input, so there is no public exploit identified at time of analysis and no evidence of active exploitation; the vuln.today Decision label is 'this_month', consistent with a bug to patch on a normal cycle rather than act_now/emergency. One signal conflicts with the rest: the input Tag 'Authentication Bypass' is inconsistent with CWE-681 (incorrect numeric conversion) and with the description/Jira CSHARP-6166, which describe an integrity-check bypass on binary subtypes, not any authentication bypass - treat that tag as mislabeled, not as evidence of an auth-level flaw.

Exploit ScenarioDerived

An unauthenticated user submits textual input (e.g., JSON with BinData, HexData, or legacy $type, or data that becomes a BsonBinaryData) carrying a binary subtype value outside the valid 0-255 range to an application built on an affected MongoDB C

Driver. On encoding, the out-of-range subtype is narrowed to a smaller wire representation, so the application emits and persists binary elements that misdeclare their type or length. No public exploit code is referenced; the attack requires only that the app parse attacker-supplied text and write the result back as BSON.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – Oct 22, 2026

Applications using the MongoDB C

Driver (2.0.0 up to but not including 3.13.0) can be induced to write malformed BSON binary elements to the database when they parse untrusted text containing an out-of-range binary subtype value. The subtype is accepted during parsing, bypasses the library's UUID and OldBinary integrity guards, and is then narrowed to a single byte on encoding, so the persisted element misdeclares its type or length; downstream readers either error out or silently interpret the value as shorter than what was originally validated. Impact is integrity and limited availability damage from corrupted persisted data, not code execution or disclosure, and the CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N, VI:L/VA:L) and the independent 3.1 assessment agree it is unauthenticated but low-impact. No public exploit code or active exploitation is reported in the available sources, and the vendor priority is 'this_month' rather than an emergency.

RemediationAI

Upgrade the MongoDB C

Driver to 3.13.0 or later, which is the vendor-released patch for this issue and for the related CSHARP-6157, CSHARP-6162 and CSHARP-6168 hardening (see https://github.com/mongodb/mongo-csharp-driver/releases/tag/v3.13.0 and https://jira.mongodb.org/browse/CSHARP-6166). Because 3.13.0 makes BsonBinaryData, the JSON reader (BinData, HexData and legacy $type) and the binary writer throw on any subtype outside 0-255, and also rejects raw BSON with inconsistent declared lengths, treats BsonSymbolTable as obsolete and changes generated update/schema shapes, test ingestion paths and any code that previously relied on out-of-range or loosely formed input before deploying, since previously tolerated documents will now fail. If the upgrade cannot be applied immediately, add validation at the application boundary that rejects any BinData, HexData or $type subtype outside 0-255 and refuses malformed raw BSON, and avoid re-encoding text-derived binary values that have not been range-checked; these controls only cover code paths that pass through the validation layer and do not protect direct BsonBinaryData construction, so they are temporary until 3.13.0 is in place. Validate any already-persisted binary elements written by affected versions, since existing records may be truncated or structurally invalid and will surface as read errors or silent short reads.

Affected VersionsENISA

C# Driver 2.0.0 <3.13.0

Affected Packages

euvd c_driver fix: 3.13.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

BSON encodes a binary element as a subtype byte (valid range 0-255) plus a length prefix and payload, with subtype 4 (UUID) and subtype 2 (OldBinary) carrying additional structural requirements that the driver validates. The MongoDB C

Driver's JSON reader exposes three ways to author such elements from text: BinData(subtype, base64), HexData(subtype, hex) and the legacy {"$binary": ..., "$type": ...} form, alongside direct construction of BsonBinaryData. Per the vendor's release notes for CSHARP-6166, the flaw is a CWE-681 incorrect conversion between numeric types: a subtype supplied as a wider numeric type and outside 0-255 slipped past the integrity checks, then was narrowed when the binary writer produced the wire representation, yielding elements whose declared type or length disagrees with the bytes actually written. The 3.13.0 release makes BsonBinaryData, the JSON reader (BinData, HexData and legacy $type) and the binary writer reject any subtype outside 0-255. The same release bundles related hardening under separate advisories - rejection of raw BSON documents whose declared length is inconsistent with the buffer (CSHARP-6157), removal of unbounded BsonSymbol interning with BsonSymbolTable marked obsolete (CSHARP-6162), and stricter handling of single-element list rewriting in the update builder (CSHARP-6168) - so upgrade behavior changes extend beyond this CVE. Note that the supplied tag 'Authentication Bypass' is not supported by the assessed impact or by the vendor's own description, which concerns data corruption rather than credential or authorization bypass.

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

Unauthenticated remote textual input triggers it (PR:N/AC:L/AV:N); impact is limited data-integrity corruption and downstream read failures (I:L/A:L) with no confidentiality loss and no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/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
None
Privileges Required
None
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

2
Patch available
Oct 22, 2026 - 20:18 EUVD
CVE Published
Oct 22, 2026 - 19:17 cve.org
MEDIUM 6.9

DescriptionCVE.org

A numeric-type conversion flaw in the BSON handling library of the MongoDB C

Driver allows an out-of-range binary subtype value supplied through untrusted textual input to bypass the library's binary-element integrity checks. When such a value is later encoded, it is narrowed to a smaller wire representation, producing binary elements that misdeclare their type or length. An unauthenticated party able to supply text parsed by an affected application can cause it to emit and persist malformed binary data, which subsequent readers either reject with an error or silently interpret as shorter than the data that was validated.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
High
official .NET driver for the widely deployed MongoDB database
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Yes
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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-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-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

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

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