CVE-2026-81524

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

Published Aug 27, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A weakness in the MongoDB C Driver allows special elements in caller-supplied database and collection name components to pass without sanitization when the driver composes the target namespace for an operation. An application that incorporates untrusted input into these name components can have operations directed at a resource other than the one intended.

Analysis

AI-generated

Technical impact

A weakness in the MongoDB C Driver allows special elements in database and collection name components to bypass sanitization when the driver composes the target namespace for an operation. The flaw permits an attacker to inject dot or NUL characters into these names, causing the driver to direct database operations to a namespace different from the one intended. This can enable an application that receives untrusted input to perform actions on another tenant’s data or databases, leading to confidentiality violations.

Affected Systems

The vulnerability affects the MongoDB C Driver. No specific affected driver version is listed in the CNA data; however, the publicly referenced release tag 2.5.1 indicates that updates beyond this version include a fix.

Risk and Exploitability

The CVSS score of 5.3 places the issue in the Moderate range. The EPSS score is not available, so the exploited volume remains uncertain, and the KEV catalog lists it as not exploited. Nevertheless, the attack likely requires only the ability to supply arbitrary database or collection names in the client, which is common in many applications. Because the flaw directly allows cross‑tenant data access, the potential impact is significant, especially in multi‑tenant deployments. The overall risk is moderate but warrants timely remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the MongoDB C Driver to version 2.5.1 or later, as that release contains the official patch for this issue.
  • Validate all database and collection names supplied by users before sending them to the driver, ensuring that only alphanumeric characters and allowed delimiters are present and that dot and NUL characters are rejected.
  • Deploy a runtime policy or environment filter that rejects any namespace containing disallowed characters and monitor for attempts to access disallowed namespaces.

Generated by OpenCVE AI on August 28, 2026 at 14:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
CPEs cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*
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 allows special elements in caller-supplied database and collection name components to pass without sanitization when the driver composes the target namespace for an operation. An application that incorporates untrusted input into these name components can have operations directed at a resource other than the one intended.
Title Cross-tenant database retargeting via dot/NUL injection in namespace strings in the C Driver
Weaknesses CWE-99
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-99

    Improper Control of Resource Identifiers ('Resource Injection')

Sources

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