CVE-2026-81525
CVE-2026-81525 · Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 8.6 · High · EPSS 0.5% · Fix available
- Published
- Updated
Affected products and versions
php library
- Versions
- ≥ 0, < 1.21.4: Affected (semver)
- ≥ 2.0.0, < 2.4.1: Affected (semver)
Update to 1.21.4; Update to 2.4.1
php extension
- Versions
- ≥ 0, < 1.21.6: Affected (semver)
- ≥ 2.0.0, < 2.4.1: Affected (semver)
Update to 1.21.6; Update to 2.4.1
php-mongodb Debian:12
- Versions
- 1.15.0+1.11.1+1.9.2+1.7.5-1
- 1.19.3-1
- 1.19.4-2
- 1.19.4-3~exp2
- 1.19.4-3~exp3
- 1.19.4-3~exp4
- 1.20.0-1
- 1.20.1-1
- 1.21.0-1
- 2.0.0-1
- 2.1.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
php-mongodb Debian:13
- Versions
- 2.0.0-1
- 2.1.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
php-mongodb Debian:14
- Versions
- 2.0.0-1
- 2.1.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
mongodb/mongodb Packagist
- Versions
- 0.1.0
- 0.2.0
- 1.0.0
- 1.0.0-alpha1
- 1.0.0-beta1
- 1.0.0-beta2
- 1.0.1
- 1.0.2
- 1.0.3
- 1.0.4
- 1.0.5
- 1.1.0
- 1.1.0-alpha1
- 1.1.1
- 1.1.2
- 1.10.0
- 1.10.1
- 1.11.0
- 1.12.0
- 1.13.0
- 1.13.0-beta1
- 1.13.1
- 1.15.0
- 1.16.0
- 1.16.1
- 1.17.0
- 1.17.1
- 1.18.0
- 1.19.0
- 1.19.1
- 1.2.0
- 1.2.0-alpha1
- 1.20.0
- 1.21.0
- 1.21.1
- 1.21.2
- 1.21.3
- 1.3.0
- 1.3.1
- 1.3.2
- 1.4.0
- 1.4.1
- 1.4.2
- 1.4.3
- 1.5.0
- 1.5.1
- 1.5.2
- 1.6.0
- 1.6.1
- 1.7.0
- 1.7.0-beta1
- 1.7.0-beta2
- 1.7.0-rc1
- 1.7.1
- 1.7.2
- 1.8.0
- 1.8.0-RC1
- 1.9.0
- 1.9.0-alpha1
- Affected ranges
- ECOSYSTEM: < 1.21.4
Update to 1.21.4
mongodb/mongodb Packagist
- Versions
- 2.0.0
- 2.1.0
- 2.1.1
- 2.1.2
- 2.2.0
- 2.3.0
- 2.4.0
- Affected ranges
- ECOSYSTEM: ≥ 2.0.0, < 2.4.1
Update to 2.4.1
php-mongodb Ubuntu:16.04:LTS
- Versions
- 1.1.2-2~ubuntu1
- 1.1.5-1~build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
php-mongodb Ubuntu:18.04:LTS
- Versions
- 1.2.3-1build1
- 1.3.4-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
php-mongodb Ubuntu:20.04:LTS
- Versions
- 1.5.5-1build1
- 1.6.1-4
- 1.6.1-4build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
php-mongodb Ubuntu:22.04:LTS
- Versions
- 1.9.0+1.7.5-2build2
- 1.11.1+1.9.2+1.7.5-4
- 1.12.0+1.9.2+1.7.5-3
- 1.12.0+1.9.2+1.7.5-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
php-mongodb Ubuntu:24.04:LTS
- Versions
- 1.15.0+1.11.1+1.9.2+1.7.5-1build1
- 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu1
- 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu2
- 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
php-mongodb Ubuntu:26.10
- Versions
- 2.1.7-0ubuntu1
- 2.1.7-0ubuntu2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
php-mongodb Ubuntu:26.04:LTS
- Versions
- 2.1.0-1
- 2.1.7-0ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-81525