Skip to main content

MongoDB C++ Driver CVE-2026-81522

| EUVDEUVD-2026-67206 HIGH
Improper Encoding or Escaping of Output (CWE-116)
2026-08-27 mongodb
8.6
CVSS 4.0 · Vendor: mongodb
Share

Severity by source

Vendor (mongodb) PRIMARY
8.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
9.6 CRITICAL

PR:L reflects required authenticated application access; S:C reflects cross-tenant namespace redirect impacting data outside the attacker's authorized scope; A:N as no availability impact is described.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

4
Patch available
Aug 27, 2026 - 22:03 EUVD
Source Code Evidence Fetched
Aug 27, 2026 - 20:44 vuln.today
Analysis Generated
Aug 27, 2026 - 20:44 vuln.today
CVE Published
Aug 27, 2026 - 18:32 cve.org
HIGH 8.6

DescriptionCVE.org

A weakness in the MongoDB C++ Driver's handling of caller-supplied namespace identifiers allows special characters embedded in those identifiers. An application that builds a namespace identifier from untrusted input without validating it may therefore have its operation directed at a different target than intended. This can result in limited unauthorized read and write access to data belonging to another logical tenant of the affected application.

AnalysisAI

Namespace injection in the MongoDB C++ Driver (all versions prior to r4.5.1) allows low-privileged users of affected multi-tenant applications to redirect database operations to unintended namespaces. The driver fails to validate caller-supplied database and collection name identifiers against '.' and NUL byte characters, enabling an attacker who can influence those identifiers to access or modify another tenant's data. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Authenticate to multi-tenant application
Delivery
Submit crafted namespace string containing '.' or NUL byte
Exploit
Application passes input to C++ Driver without validation
Execution
Driver resolves operation to unintended tenant namespace
Impact
Read or modify another tenant's data

Vulnerability AssessmentAI

Exploitation Exploitation requires three concurrent conditions: (1) the application uses the MongoDB C++ Driver in a version prior to r4.5.1; (2) the application constructs database or collection namespace identifiers from user-supplied or externally-controlled input without prior sanitization; and (3) the deployment is multi-tenant, with tenant data isolation relying on logical namespace separation via distinct database or collection names per tenant. … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The CVSS 4.0 base score of 8.6 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N) reflects a network-reachable flaw with low complexity requiring only low privileges - characteristics that normally signal a high-priority finding. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario An authenticated user of a multi-tenant SaaS application backed by the MongoDB C++ Driver submits a crafted collection name containing a '.' character - for example 'mydata.othertenant_records' - as part of a legitimate API parameter. Because the application passes this value directly to the driver without validation, the operation is redirected to the 'othertenant_records' collection in the 'mydata' database instead of the intended namespace, allowing the attacker to read or overwrite another tenant's records.
Remediation Upgrade to MongoDB C++ Driver version r4.5.1 or later, which introduces validation of database and collection name arguments against '.' and NUL bytes as documented in the official release notes at https://github.com/mongodb/mongo-cxx-driver/releases/tag/r4.5.1; release artifact signatures can be verified using the cpp-driver public key at https://pgp.mongodb.com. … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

Within 24 hours, inventory all systems running MongoDB C++ Driver and identify current versions and deployment scope. …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

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-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-81527 MEDIUM
6.9 Aug 27

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

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-9100 MEDIUM
6.0 May 20

The legacy GridFS API in the MongoDB C Driver fails to validate file metadata fields retrieved from the database, enabli

CVE-2023-0437 MEDIUM
5.3 Jan 12

When calling bson_utf8_validate on some inputs a loop with an exit condition that cannot be reached may occur, i.e. Rate

CVE-2026-6231 MEDIUM
5.3 Apr 13

MongoDB C Driver bson_validate function returns early on specific inputs and incorrectly reports successful validation,

CVE-2026-81528 MEDIUM
5.3 Aug 27

NoSQL injection in the MongoDB C# Driver's document-replacement code path allows network-accessible, low-privileged atta

CVE-2026-81524 MEDIUM
5.3 Aug 27

Namespace injection in MongoDB C Driver (libmongoc) allows any caller-controlled database or collection name containing

CVE-2021-20331 MEDIUM
4.9 May 13

Specific versions of the MongoDB C# Driver may erroneously publish events containing authentication-related data to a co

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

Share

CVE-2026-81522 vulnerability details – vuln.today

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