CVE-2026-81522: MongoDB C++ Driver Namespace Injection Cross-Tenant Access
- Vendor
- Mongodb
CVE-2026-81522 is an improper encoding or escaping weakness in the MongoDB C++ Driver’s handling of caller-supplied namespace identifiers. Special characters, including dot and NUL characters, can be embedded in a namespace identifier. Applications that construct namespace identifiers from untrusted input without validating it can have a database operation redirected to a target other than the intended namespace, enabling cross-tenant access in affected multi-tenant deployments. MongoDB C++ Driver versions 3.0.0 through 4.5.0 are affected.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker with the necessary application-level privileges can cause operations to be directed at another logical tenant’s data. This permits limited unauthorized reads and writes, with high confidentiality and integrity impact. No availability impact is identified.
Mitigation
If you can’t patch tonight, do this now.
Do not construct MongoDB namespace identifiers directly from untrusted input. Strictly validate and constrain tenant, database, and collection identifier components before namespace construction, rejecting special characters and values outside an application-defined allowlist. Enforce tenant isolation and authorization independently of client-supplied namespace values.
Remediation
Patch, then assume compromise.
Upgrade the MongoDB C++ Driver to release r4.5.1 or a later patched release.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-81522 exploited in the wild?
- As of Sep 29, 2026, Mallory has no reports of CVE-2026-81522 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-81522?
- As of Sep 29, 2026, Mallory has found no public exploit for CVE-2026-81522.
- Is there a patch for CVE-2026-81522?
- Upgrade the MongoDB C++ Driver to release r4.5.1 or a later patched release.
- What products are affected by CVE-2026-81522?
- Mongodb C++ Driver.
- How severe is CVE-2026-81522?
- CVE-2026-81522 has a CVSS v4 score of 8.6 (High) and an EPSS score of 0.46% (32nd percentile) as of Sep 29, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.