Skip to main content

C Driver CVE-2026-6231

| EUVDEUVD-2026-22023 MEDIUM
Improper Input Validation (CWE-20)
2026-04-13 mongodb GHSA-q869-m422-4qcv
5.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Attacker gains authenticated access
  2. Delivery
    Crafts malformed BSON with invalid UTF-8
  3. Exploit
    Sends BSON to application using vulnerable driver
  4. Execution
    bson_validate incorrectly validates as success
  5. Persist
    Application processes malformed data
  6. Impact
    Integrity violation occurs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Impact

The CVSS 5.3 score with network-accessible attack vector (AV:N), low complexity (AC:L), and low privilege requirement (PR:L) indicates this is moderately exploitable; however, the impact assessment shows only low integrity impact (VI:L) with no confidentiality or availability impact. The EPSS score of 0.48 (approximately 48% exploitation probability) places this in the moderate range-above-average risk but not critically urgent. The tag 'Authentication Bypass' is somewhat misleading: this is not a classic authentication bypass but rather an input validation bypass that requires an authenticated attacker to send crafted BSON data to an application using a vulnerable driver version. The practical risk depends heavily on the application's trust model-if an app validates BSON only via this function and accepts the result without secondary checks, integrity corruption becomes possible. However, many applications may have defense-in-depth measures (schema validation, application-level checks) that mitigate the real-world impact. This is a genuine vulnerability that should be patched, but is not an emergency-level issue.

Exploit ScenarioDerived

An authenticated application user or internal service connected to a MongoDB database via the vulnerable C Driver sends a specially crafted BSON document with an invalid UTF-8 sequence or structural anomaly. The bson_validate function incorrectly returns success due to the early-exit bug, causing the driver to pass the malformed BSON to the application. The application, trusting the validation result, processes the invalid data, which may corrupt internal state, trigger incorrect query results, or cause subtle data integrity issues in downstream operations.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 13, 2026

MongoDB C Driver bson_validate function returns early on specific inputs and incorrectly reports successful validation, allowing malformed or invalid UTF-8 sequences in BSON data to bypass validation checks. This affects MongoDB C Driver versions prior to 1.30.5, 2.0.0, and 2.0.1, and impacts applications that depend on this validation function to process untrusted BSON data. Authenticated remote attackers can exploit this to inject invalid BSON data, potentially causing integrity issues in downstream processing; EPSS 0.48 indicates this is a moderate-priority issue that warrants patching but is not among the highest-risk vulnerabilities.

RemediationAI

Upgrade MongoDB C Driver to version 1.30.5 or later for the 1.x branch, or to version 2.0.2 or later for the 2.x branch. Consult the MongoDB JIRA ticket at https://jira.mongodb.org/browse/CDRIVER-6017 for detailed release notes and validation of the fix. If immediate upgrade is not possible, implement secondary BSON validation at the application layer, such as schema validation via MongoDB server-side rules or application-level deserialization checks, to ensure malformed data does not propagate downstream. Test the patched driver thoroughly with existing BSON inputs to confirm compatibility before rolling out to production.

Affected VersionsENISA

C Driver 2.0 <2.0.2
C Driver 1.0 <1.30.5

Affected Packages

euvd c_driver fix: 1.30.5, 2.0.2

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 (Binary JSON) is MongoDB's internal binary serialization format used for data storage and transmission. The bson_validate function is a critical security boundary in the MongoDB C Driver (CPE: cpe:2.3:a:mongodb_inc.:c_driver) that validates BSON document structure and encoding, including UTF-8 character sequence correctness. The vulnerability is classified as CWE-20 (Improper Input Validation), a root-cause weakness indicating the validation logic contains a flaw that causes it to exit early under specific input patterns without fully checking all constraints. When the function incorrectly reports success despite incomplete validation, subsequent application code that trusts this result may process malformed BSON as valid, potentially triggering unexpected behavior in database operations or data transformations that depend on well-formed input.

Know when C Driver 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 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb) · only source for this CVE.

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

4
Patch released
Apr 17, 2026 - 15:18 nvd
Patch available
Patch available
Apr 16, 2026 - 05:29 EUVD
2.0.2,1.30.5
CVSS changed
Apr 13, 2026 - 16:22 NVD
4.3 (MEDIUM) 5.3 (MEDIUM)
CVE Published
Apr 13, 2026 - 15:31 nvd
MEDIUM 5.3

DescriptionCVE.org

The bson_validate function may return early on specific inputs and incorrectly report success. This behavior could result in skipping validation for BSON data, allowing malformed or invalid UTF-8 sequences to bypass validation and be processed incorrectly. The issue may affect applications that rely on these functions to validate untrusted BSON data before further processing. This issue affects MongoDB C Driver versions prior to 1.30.5, MongoDB C Driver version 2.0.0 and MongoDB C Driver version 2.0.1

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2020-12135 MEDIUM POC
5.5 Apr 24

bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. Rated medium

CVE-2026-93393 CRITICAL
9.2 Sep 17

Heap-based buffer overflow in the TLS transport layer of the MongoDB C Driver on Windows TLS-backend builds allows the e

CVE-2026-81522 HIGH
8.6 Aug 27

Namespace injection in the MongoDB C++ Driver (all versions prior to r4.5.1) allows low-privileged users of affected mul

CVE-2026-96746 HIGH
8.3 Sep 24

Heap out-of-bounds write in the MongoDB C Driver (libmongoc) allows an unauthenticated attacker who controls DNS resolut

CVE-2026-84964 HIGH
8.2 Sep 03

Double-free memory corruption in the MongoDB C Driver's OpenSSL-based TLS certificate revocation checking path allows a

CVE-2024-7553 HIGH
7.8 Aug 07

Incorrect validation of files loaded from a local untrusted directory may allow local privilege escalation if the underl

CVE-2026-81529 HIGH
7.1 Aug 27

Connection-option injection in the MongoDB C# Driver allows a low-privileged application user to introduce or suppress s

CVE-2026-93395 MEDIUM
6.9 Sep 17

Denial of service in applications using the MongoDB C Driver's libbson library can be triggered by crafted BSON input wi

CVE-2026-81527 MEDIUM
6.9 Aug 27

NoSQL injection in the MongoDB C# Driver's LINQ-to-aggregation translation layer allows network-accessible, unauthentica

CVE-2025-12119 MEDIUM
6.9 Nov 18

A mongoc_bulk_operation_t may read invalid memory if large options are passed. Rated medium severity (CVSS 6.9), this vu

CVE-2026-81530 MEDIUM
6.8 Aug 27

Sensitive KMS provider credentials supplied for client-side field-level encryption (CSFLE) in the MongoDB C# Driver are

CVE-2026-93394 MEDIUM
6.3 Sep 17

SCRAM authentication in the MongoDB C Driver (libmongoc) fails to abort when a nonce mismatch is detected in the server'

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