8.6high
Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver
- Severity
- 8.6high CVSS:4.0 by mongodb
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mongodb
- Also known as
- GHSA-65fr-j4p9-vc33
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
| Product or package | Versions | Reported by |
|---|---|---|
| MongoDB PHP Library | before 1.21.4, from 2.0.0 before 2.4.1 | CVE List |
| MongoDB PHP Extension | before 1.21.6, from 2.0.0 before 2.4.1 | CVE List |
| mongodb/mongodb (Packagist) | before 1.21.4, from 2.0.0 before 2.4.1 | GitHub Advisory Database |
| mongodb php_driver | before 1.21.6, from 2.0.0 before 2.4.1 | NVD |
| mongodb php_library | before 1.21.4, from 2.0.0 before 2.4.1 | NVD |
All scores
| mongodb | 8.6high CVSS:4.0 | 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 |
| mongodb | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | high CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
Passing untrusted input as part of a database or collection name may result in targeting a different database or collection than specified.
Patches
Fixed in PHP library 1.21.4 and 2.4.1.
Workarounds
Validate database and collection names prior to passing into APIs.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-81525 changed 2026-08-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-65fr-j4p9-vc33 changed 2026-09-08 | CC-BY-4.0 |
| NVD | CVE-2026-81525 changed 2026-09-29 | Public domain |