Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | PHP Library | before 1.21.4; 2.0.0 to before 2.4.1 | 1.21.4, 2.4.1 | Patch available | CNA |
| MongoDB | PHP Extension | before 1.21.6; 2.0.0 to before 2.4.1 | 1.21.6, 2.4.1 | Patch available | CNA |
| — | mongodb/mongodb (Packagist) | before 1.21.4 | 1.21.4 | Patch available | GHSA-65fr-j4p9-vc33 |
| — | mongodb/mongodb (Packagist) | 2.0.0 to before 2.4.1 | 2.4.1 | Patch available | GHSA-65fr-j4p9-vc33 |
- PHP Library VendorMongoDB Affected before 1.21.4; 2.0.0 to before 2.4.1 Fixed in 1.21.4, 2.4.1 Patch available CNA
- PHP Extension VendorMongoDB Affected before 1.21.6; 2.0.0 to before 2.4.1 Fixed in 1.21.6, 2.4.1 Patch available CNA
- mongodb/mongodb (Packagist) Vendor— Affected before 1.21.4 Fixed in 1.21.4 Patch available GHSA-65fr-j4p9-vc33
- mongodb/mongodb (Packagist) Vendor— Affected 2.0.0 to before 2.4.1 Fixed in 2.4.1 Patch available GHSA-65fr-j4p9-vc33
Remediation
- Fix · CNA PHP Library (MongoDB) Fixed in 1.21.4, 2.4.1
- Fix · CNA PHP Extension (MongoDB) Fixed in 1.21.6, 2.4.1
- Fix · GHSA-65fr-j4p9-vc33 mongodb/mongodb (Packagist) Fixed in 1.21.4 Advisory →
- Fix · GHSA-65fr-j4p9-vc33 mongodb/mongodb (Packagist) Fixed in 2.4.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-81525
- 2026-10-03 Alias added: GHSA-65fr-j4p9-vc33
References
Advisory 2
Other 11
- 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://github.com/mongodb/mongo-php-library/security/advisories/GHSA-65fr-j4p9-vc33
- https://github.com/mongodb/mongo-php-library/pull/1967
- https://github.com/mongodb/mongo-php-library/pull/1968
- https://github.com/mongodb/mongo-php-library/commit/3a462213bb4fd46efa58a1937b06b1b0553b67a7
- https://github.com/mongodb/mongo-php-library/commit/6f305a3b21740080255a3093b12458274c7cc8ca
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.7
- https://github.com/mongodb/mongo-php-library
More MongoDB Php Driver vulnerabilities
- TI-2026-58391 Heap out-of-bounds read via corrupt nested BSON in field path error message CVSS 4.0MEDIUM 6.9
- TI-2024-07001 Accessing Untrusted Directory May Allow Local Privilege Escalation CVSS 3.1HIGH 7.8
- TI-2021-12015 Information disclosure in MongoDB C Driver CVSS 3.1HIGH 7.5
- TI-2025-11114 Bulk write with options may read invalid memory CVSS 4.0MEDIUM 6.9
- TI-2026-69733 Unchecked BSON encoder return values in MongoDB PHP Driver CVSS 4.0MEDIUM 6.3
- TI-2026-05975 PHP Stack Exhaustion CVSS 4.0MEDIUM 6.0
Sources
- CVE-2026-81525 · CVE Program
- CVE-2026-81525 · NVD
- FIRST EPSS
- GHSA-65fr-j4p9-vc33 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences