8.1High
CVE-2026-81525Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver
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.
Weakness (CWE):
CWE-943
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| mongodb | php driver | < 1.21.6 | |
| MongoDB | PHP Extension | < 1.21.6, 2.0.0 – < 2.4.1 | |
| MongoDB | PHP Library | < 1.21.4, 2.0.0 – < 2.4.1 |
References and patches
- https://jira.mongodb.org/browse/PHPLIB-1927 Vendor Advisory
- https://github.com/mongodb/mongo-php-library/releases/tag/1.21.4 ProductRelease Notes
- https://github.com/mongodb/mongo-php-library/releases/tag/2.4.1 ProductRelease Notes
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6 ProductRelease Notes
- https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1 ProductRelease Notes
CPE matches (NVD) (4)
cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*< 1.21.6cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*≥ 2.0.0 < 2.4.1cpe:2.3:a:mongodb:php_library:*:*:*:*:*:*:*:*< 1.21.4cpe:2.3:a:mongodb:php_library:*:*:*:*:*:*:*:*≥ 2.0.0 < 2.4.1