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

> CVE-2026-81525: Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver. CVSS 8.1 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-81525
Last updated: 2026-09-29T19:17:04Z

- Published: 2026-08-27 18:32 UTC · Updated: 2026-09-29 19:17 UTC · Assigner: mongodb
- CVSS: 8.1 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.49%, 42th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-943

## 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.

## Affected vendors and products

- MongoDB: PHP Extension
- MongoDB: PHP Library

## Tracked companies

- [MongoDB Atlas](https://rewindex.com/company/mongodb-atlas.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-81525)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-81525)
- [https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6](https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6)
- [https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1](https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1)
- [https://github.com/mongodb/mongo-php-library/releases/tag/1.21.4](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-library/releases/tag/2.4.1)
- [https://jira.mongodb.org/browse/PHPLIB-1927](https://jira.mongodb.org/browse/PHPLIB-1927)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-81525 · Markdown: https://rewindex.com/cve/CVE-2026-81525.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-81525 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:17:08.737Z
