Skip to main content

MongoDB Go Driver CVE-2026-81521

| EUVDEUVD-2026-67205 HIGH
Improper Control of Resource Identifiers ('Resource Injection') (CWE-99)
2026-08-27 mongodb
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Attacker supplies crafted database name via app input
  2. Delivery
    App calls Client.BulkWrite with unsanitized name
  3. Exploit
    Driver builds malformed namespace string
  4. Execution
    Write operation targets unintended database/collection
  5. Impact
    Data integrity violated in attacker-chosen namespace

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Resource identifier sanitization
Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the application uses the Client.BulkWrite API from go.mongodb.org/mongo-driver/v2 specifically - single-collection write APIs are not affected; (2) the application passes a caller-supplied or otherwise untrusted string as the database name argument without prior sanitization; and (3) the attacker has the ability to influence that database name input, typically through an API parameter, configuration endpoint, or multi-tenant identifier field. Applications that construct database names exclusively from static server-side configuration or validated allow-lists are not exploitable. Authentication requirements reflect the consuming application's access controls rather than the driver itself; the CVSS PR:L indicates that some level of application-layer access (e.g., authenticated API user) is typically required to reach the vulnerable code path.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N) scores 7.1, reflecting high integrity impact reachable over the network with low privilege. EPSS data is not provided in the input, so probabilistic exploitation likelihood cannot be cited. There is no CISA KEV entry and no known POC, meaningfully reducing near-term real-world risk despite the elevated CVSS score. The practical risk is conditional: exploitation requires an application to (a) use the Client.BulkWrite API specifically, (b) pass unsanitized user-controlled input as the database name, and (c) be exposed to untrusted callers. Applications that construct database names solely from server-side configuration or trusted sources are not affected. This is a library-level flaw; the true blast radius depends entirely on how consuming applications handle input - a common pattern in resource injection vulnerabilities. PR:L in the vector is accurate: the attacker must have a foothold in the consuming application's input layer, not the driver itself.

Exploit ScenarioDerived

An attacker interacts with a Go web service that exposes a multi-tenant API where the database name is derived from a user-supplied tenant identifier. By supplying a tenant name such as 'legit.admin', the attacker causes the MongoDB Go Driver's Client.BulkWrite to construct the namespace 'legit.admin.orders' instead of 'legit.orders', silently redirecting bulk writes into the 'admin' collection of the 'legit' database - or into an entirely different database depending on separator placement. No public exploit code is known at this time.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – Aug 27, 2026

Namespace injection in MongoDB Go Driver's Client.BulkWrite API allows an attacker who controls the database name argument to redirect bulk write operations to an unintended database and collection. When an application passes untrusted, user-supplied input directly as a database name, the driver fails to escape reserved MongoDB namespace separator characters before constructing the target namespace string. The impact is a high-integrity write misdirection - data is silently written to attacker-influenced storage targets. No public exploit and no CISA KEV listing exist at time of analysis.

RemediationAI

The primary fix is to upgrade go.mongodb.org/mongo-driver/v2 to v2.8.2 or later, which introduces proper escaping of reserved separator characters in the Client.BulkWrite namespace construction path. Run 'go get go.mongodb.org/mongo-driver/v2@v2.8.2' and rebuild affected services. As an interim compensating control for applications that cannot immediately upgrade, validate and sanitize database name arguments before passing them to Client.BulkWrite - specifically, reject or strip any string containing a '.' character used as a namespace separator in MongoDB. This control carries the trade-off of potentially rejecting legitimate database names that contain dots if your schema permits them, so the patch is strongly preferred. The advisory reference is https://pkg.go.dev/go.mongodb.org/mongo-driver/v2@v2.8.2.

Affected VersionsENISA

GO Driver 2.1.0 <2.8.2

Affected Packages

euvd go_driver fix: 2.8.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

The vulnerability (CWE-99: Improper Control of Resource Identifiers) resides in the Go language client for MongoDB, identified by CPE cpe:2.3:a:mongodb:go_driver:*:*:*:*:*:*:*:*. MongoDB namespaces are expressed as 'database.collection' strings, where '.' is a reserved separator. The Client.BulkWrite API constructs these namespace strings from caller-provided database names without first stripping or escaping the reserved character. An attacker who controls the database name argument can inject a '.' (or equivalent separator) to alter the resulting namespace, causing the bulk write to target a different database or collection entirely. Only the Client.BulkWrite method is affected; single-collection write operations are not in scope. The reference URL points to v2.8.2 of the mongo-driver/v2 module on pkg.go.dev, indicating the fix was delivered in that release.

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

Network-reachable via app layer (AV:N), low complexity; PR:L because attacker must control app input; integrity-only impact with no confidentiality or availability effect.

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

Primary rating from Vendor (mongodb).

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

Lifecycle Timeline

2
Patch available
Aug 27, 2026 - 22:03 EUVD
CVE Published
Aug 27, 2026 - 18:31 cve.org
HIGH 7.1

DescriptionCVE.org

The MongoDB Go Driver's client-level bulk write operation may accept a caller-supplied database name containing a reserved separator character without escaping it before the name is used to build the target namespace for the operation. An application that passes untrusted input as a database name could therefore have the write directed at a database and collection other than the ones it intended. Only the Client.BulkWrite API is affected.

Executive ViewAI

Why It Matters

The MongoDB Go Driver contains a namespace injection vulnerability in Client.BulkWrite that redirects write operations to attacker-controlled databases and collections when applications pass untrusted user input as database names. This silent data misdirection undermines data integrity and audit trails, potentially causing critical business data to be written to unintended or malicious storage locations. Organizations using affected driver versions with user-influenced database parameters face immediate risk of unauthorized data placement and associated compliance violations.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict input validation restricting database names to an allowlist of expected namespaces; (2) enforce role-based access control limiting write permissions by database; (3) add pre-write validation in application code to log and verify target database and collection names; (4) enable and monitor MongoDB audit logs for unexpected write destinations; (5) restrict application privileges to only necessary databases to limit blast radius of namespace injection.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
popular Go library for MongoDB, not universally deployed
Data Quality
7 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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

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

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server 16.0 Affected
SUSE Linux Enterprise Server 16.1 Affected

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