Skip to main content

MongoDB Go Driver CVE-2026-88031

| EUVDEUVD-2026-75667 MEDIUM
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-09-10 cna@mongodb.com GHSA-gf3f-xg7m-h8wp
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 to application with low privileges
  2. Delivery
    Craft BSON query-operator object as file identifier
  3. Exploit
    Submit to GridFS file operation endpoint
  4. Install
    Application forwards unvalidated identifier to Go Driver GridFS call
  5. C2
    Driver passes object as MongoDB query filter
  6. Execute
    MongoDB matches all bucket chunks
  7. Impact
    All file chunks deleted, bucket contents destroyed

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: (1) low-privilege authentication to the target application (PR:L in CVSS vector), (2) the application uses the MongoDB Go Driver's GridFS component and forwards user-controlled input as a file identifier to GridFS operations without type-coercing it to a primitive scalar, and (3) the attacker can supply a value that the application's call path accepts as an identifier parameter without rejecting structured types. The CVSS 4.0 AT:P metric captures this dependency explicitly - applications that validate or type-enforce identifiers before calling the driver are not affected. Exploitation is limited to the GridFS bucket accessible to the application's database credentials; broader database access or cross-bucket impact is not demonstrated. Only the availability and integrity of stored GridFS file data are at risk; no confidentiality exposure applies.

Impact

The CVSS 4.0 score of 6.1 (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H) accurately captures the risk profile. The AT:P metric (Attack Requirements: Present) is the critical moderating factor: exploitation depends on an application forwarding user-controlled values to GridFS operations without type enforcement - a pattern that is common in dynamically constructed APIs but not universal. Applications that sanitize or type-coerce identifiers before GridFS calls are not exploitable. Where the condition is met, the impact is severe: all chunks in the targeted bucket are deleted, rendering every stored file unreadable (VA:H, VI:H). Confidentiality impact is explicitly zero (VC:N), making the 'Information Disclosure' tag in the input metadata incorrect. No public exploit code and no CISA KEV listing have been identified, placing real-world exploitation probability at low-to-moderate for applications that pass raw user input to GridFS. The Jira-only reference lacks a patched version number, which is a meaningful data gap for defenders.

Exploit ScenarioDerived

An authenticated user submits a crafted file identifier - structured as a BSON query operator expression such as {"$gte": primitive.NilObjectID} - to an application endpoint that resolves and deletes files by ID. The application forwards the unvalidated value to the MongoDB Go Driver's GridFS delete operation, which passes it to MongoDB as a query filter rather than a point-lookup ID. MongoDB matches and deletes all chunk documents in the bucket, permanently destroying every stored file's content.

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 in the MongoDB Go Driver's GridFS component allows an authenticated, low-privileged user who can influence the file identifier forwarded by an application to trigger mass deletion of all file chunks in the affected GridFS bucket. The GridFS delete and lookup operations fail to enforce that a caller-supplied identifier is a literal value, so a structured query object (e.g., a BSON operator expression) is passed directly to MongoDB's query engine as a filter condition rather than a point lookup. No public exploit has been identified at time of analysis; the CVSS 4.0 metrics confirm high integrity and availability impact (VI:H, VA:H) against a specific attack condition (AT:P), scoring 6.1.

RemediationAI

Upgrade to the patched version of the MongoDB Go Driver; the exact fixed release version is not confirmed from available data - consult the Jira issue GODRIVER-4081 (https://jira.mongodb.org/browse/GODRIVER-4081) for the patched release tag. As an immediate compensating control, enforce strict type validation on all file identifiers before passing them to GridFS operations: resolve identifiers to a concrete primitive.ObjectID or string value and reject any structured or map-type input at the application boundary. This eliminates the injection path regardless of driver version and carries no meaningful side effects for correctly structured applications. Additionally, apply principle of least privilege to MongoDB credentials used by the application - limiting delete permissions on GridFS collections reduces the blast radius if exploitation occurs.

Affected VersionsENISA

GO Driver 2.0.0 <2.9.1
GO Driver 1.0.0 <1.17.10

Affected Packages

euvd go_driver fix: 1.17.10, 2.9.1

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

MongoDB GridFS is a protocol layered on top of MongoDB for storing files larger than the 16 MB BSON document limit by splitting them into chunks across a 'files' collection and a 'chunks' collection. The official Go client library (go.mongodb.org/mongo-driver) implements GridFS operations including file lookup and deletion. CWE-943 - Improper Neutralization of Special Elements in Data Query Logic - describes the root cause: the GridFS component constructs a MongoDB query using the caller-supplied file identifier without first asserting that the value is a concrete scalar type (ObjectID or string). A BSON document passed as an identifier (e.g., {"$gte": ObjectID("")}) is forwarded verbatim to the MongoDB query engine, which interprets it as a filter expression matching all documents in the chunks collection rather than a single file's chunks, enabling mass deletion. The vulnerability is tracked in MongoDB Jira as GODRIVER-4081.

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:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.8 MEDIUM

AC:H reflects the AT:P condition: exploitation requires the application to forward user-controlled values to GridFS without type enforcement, a non-universal pattern.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.1 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
None
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 Go 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 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
Medium
official Go driver for MongoDB, common in Go backend services
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
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

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-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-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-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