Skip to main content

MongoDB C++ Driver EUVDEUVD-2026-75670

| CVE-2026-88034 MEDIUM
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-09-10 mongodb GHSA-x33j-9628-wvwc
6.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as low-privileged application user
  2. Delivery
    Identify GridFS file access or delete endpoint
  3. Exploit
    Craft file identifier containing MongoDB query operator syntax
  4. Install
    Submit crafted identifier via application API
  5. C2
    C++ Driver passes unsanitized object into GridFS query
  6. Execute
    Database matches unintended chunks
  7. Impact
    Exfiltrate unauthorized file content or delete all bucket chunks

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

Exploitation requires all of the following: (1) the target application uses the MongoDB C++ Driver (mongocxx) with its GridFS API - other MongoDB drivers are not confirmed affected; (2) an authenticated user with at least low-level access (PR:L) can influence the file identifier value that the application passes to a GridFS operation, such as via an API parameter, form field, or request body; (3) the application does not enforce strict type checking on the identifier before passing it to the driver - specifically, it must allow structured objects rather than enforcing ObjectId or plain string types. The AT:P designation in CVSS 4.0 confirms that exploitation is conditional on this specific code-path pattern. Limiting factors include: authentication is required (PR:L, not unauthenticated); only GridFS buckets accessible to the affected application are at risk; other MongoDB collections outside GridFS are not directly affected by this vector; and the vulnerability does not exist in applications that properly type-validate identifiers before driver invocation.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H) yields a score of 6.1, with the moderate score driven primarily by the AT:P (attack requirements present) condition - exploitation depends on a specific deployment pattern where user-controlled data flows into GridFS identifier parameters without type enforcement. The high integrity (VI:H) and availability (VA:H) impacts are the most serious signals: a successful injection that triggers a broad-match deletion can irreversibly destroy all file chunks in a GridFS bucket without backups. Confidentiality impact is bounded (VC:L) since an attacker may access unintended files but cannot directly exfiltrate the full MongoDB instance. No EPSS score was provided, and no KEV listing or POC code is noted, suggesting no confirmed active exploitation at time of analysis. The gap between the moderate composite score and the severity of the worst-case impact (bucket-wide data destruction) warrants careful evaluation - even a mid-sized municipal IT team in rybnik running C++ applications backed by MongoDB GridFS should treat this as urgent remediation if any application code path allows user-controlled identifiers to reach the driver without strict type validation.

Exploit ScenarioDerived

An authenticated low-privileged user identifies an application endpoint that accepts a file identifier and retrieves or deletes a GridFS file via the MongoDB C++ Driver. The attacker submits a crafted identifier containing a MongoDB query operator (such as a structured object with a $gte or $regex key) instead of a literal file ID; the driver passes this object directly into the GridFS query without sanitization. The database evaluates the operator condition, matching all GridFS chunk documents in the bucket and either returning unauthorized file content or deleting all chunks, permanently destroying stored data.

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 – Sep 10, 2026

NoSQL injection (CWE-943) in the GridFS component of the MongoDB C++ Driver allows an authenticated low-privileged user who can influence file identifiers to read unauthorized stored file content or cause mass deletion of all GridFS chunks in an affected bucket, rendering stored data unreadable. The flaw arises because caller-supplied structured file identifiers are not neutralized before being evaluated as query conditions rather than literal values. No public exploit has been identified at time of analysis, but the potential for irreversible, bucket-wide data destruction makes this a significant integrity and availability risk for any C++ application using GridFS where user-controlled identifiers reach the driver API.

RemediationAI

The primary fix is to apply the patched release of the MongoDB C++ Driver once available per MongoDB Jira CXX-3556 (https://jira.mongodb.org/browse/CXX-3556); however, no specific fixed version has been confirmed in available data at time of analysis - track that Jira ticket for the patched release version. As an immediate compensating control, application developers should enforce strict type validation on all file identifiers before passing them to GridFS driver calls: accept only MongoDB ObjectId types or validated string formats that cannot contain operator syntax, and reject any structured object input. Applications should never pass raw user-supplied JSON or BSON objects as GridFS file identifiers. Reviewing GridFS-facing endpoints to ensure the principle of least privilege is enforced - so only authorized roles can invoke GridFS read or delete operations - will reduce the blast radius. Maintaining current, tested backups of GridFS buckets is strongly recommended given the potential for irreversible bulk chunk deletion.

Affected VersionsENISA

C++ Driver 3.2.0 <4.5.3

Affected Packages

euvd c_driver fix: 4.5.3

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

GridFS is MongoDB's standard for storing files exceeding the 16 MB BSON document limit by splitting them into chunks stored across two collections: 'files' (metadata) and 'chunks' (binary data). The MongoDB C++ Driver (mongocxx/libmongocxx, CPE cpe:2.3:a:mongodb:c++_driver:*:*:*:*:*:*:*:*) implements this specification and is the affected component. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) describes a class of injection where user-supplied data containing structured query operators - such as MongoDB's $gt, $gte, $regex, or $where - is embedded into a query document without sanitization, causing the database to evaluate the operator semantics rather than perform an equality match on a literal _id value. In MongoDB's document model, queries are BSON objects, meaning any operator-keyed field in the input can alter query semantics, unlike SQL injection where a separate string parsing stage is required. The wildcard CPE version range indicates the issue spans multiple release versions of the driver.

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

AC:H reflects the AT:P condition requiring user-controlled identifiers to reach GridFS unsanitized; PR:L for authenticated low-privilege requirement; I:H and A:H for potential full-bucket chunk deletion.

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

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
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Sep 10, 2026 - 20:02 EUVD

DescriptionCVE.org

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB C++ Driver can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence the identifier passed by an affected application may obtain stored file content beyond the intended target or cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Low
C++ language binding for MongoDB with GridFS, niche deployment footprint
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.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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

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-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

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

Vendor StatusVendor

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