Vulnerability · Published Aug 27, 2026 · Assigned by mongodb
CVE-2026-81525Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver
High 8.1
In plain English
A high-severity security flaw in PHP Extension from MongoDB. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | php-mongodb | no fix listed | DEBIAN-CVE-2026-81525 |
| Debian:13 | php-mongodb | no fix listed | DEBIAN-CVE-2026-81525 |
| Debian:14 | php-mongodb | no fix listed | DEBIAN-CVE-2026-81525 |
| Packagist | mongodb/mongodb | 1.21.4 | GHSA-65fr-j4p9-vc33 |
| Packagist | mongodb/mongodb | 2.4.1 | GHSA-65fr-j4p9-vc33 |
| Ubuntu:22.04:LTS | php-mongodb | no fix listed | UBUNTU-CVE-2026-81525 |
| Ubuntu:24.04:LTS | php-mongodb | no fix listed | UBUNTU-CVE-2026-81525 |
| Ubuntu:26.04:LTS | php-mongodb | no fix listed | UBUNTU-CVE-2026-81525 |
| Ubuntu:26.10 | php-mongodb | no fix listed | UBUNTU-CVE-2026-81525 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MongoDB | PHP Library | 0 – before 1.21.42.0.0 – before 2.4.1 |
| MongoDB | PHP Extension | 0 – before 1.21.62.0.0 – before 2.4.1 |
Weakness: CWE-943 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N