CVE-2026-81522

Cross-tenant database retargeting via dot/NUL injection in namespace strings in the C++ Driver

Published Aug 27, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The MongoDB C++ Driver contains a flaw in its treatment of caller‑supplied namespace identifiers. When special characters such as a dot or NUL byte are embedded in the identifier, the driver may interpret the string as targeting a different logical tenant. This means that, if an application constructs a namespace string from untrusted input without proper validation, the operation can be redirected to a tenant that the application was not intended to access, allowing limited unauthorized read or write of that tenant’s data.

Affected Systems

MongoDB C++ Driver; any application using the driver that builds namespace identifiers from untrusted input. The CVE does not specify which driver releases are affected; a fix is referenced in the advisory for the release r4.5.1, indicating that earlier releases could be vulnerable.

Risk and Exploitability

The CVSS score of 8.6 classifies the vulnerability as high severity. The EPSS score is less than 1%, indicating a very low expected exploitation probability. The vulnerability is not listed in the CISA KEV catalog, so no known active exploitation has been reported. Attackers can exploit the flaw by injecting special characters into a namespace string supplied by an untrusted source. Since the flaw exists in the driver layer, the attacker only needs to supply a crafted namespace identifier; no elevated privileges or additional compromise are required, provided the application uses untrusted data to form database identifiers.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the MongoDB C++ Driver to a release that includes the fix, such as the r4.5.1 release or newer.
  • Validate and sanitize all caller‑supplied namespace identifiers, rejecting characters that can alter the intended namespace, such as '.' or NUL bytes.
  • Restrict namespace construction to trusted internal values or enforce a strict whitelist of acceptable namespace formats.

Generated by OpenCVE AI on August 28, 2026 at 15:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mongodb c\+\+ Driver
CPEs cpe:2.3:a:mongodb:c\+\+_driver:*:*:*:*:*:mongodb:*:*
Vendors & Products Mongodb c\+\+ Driver
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c\# Driver
Vendors & Products Mongodb
Mongodb c\# Driver
Type Values Removed Values Added
Description 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.
Title Cross-tenant database retargeting via dot/NUL injection in namespace strings in the C++ Driver
Weaknesses CWE-116
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.6, 'vector': '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'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Aug 29, 2026, 3:55 AM
Reserved
Aug 26, 2026, 10:13 PM
Status
Analyzed
Published
Aug 27, 2026, 8:18 PM
Modified
Sep 29, 2026, 7:17 PM