MongoDB PHP Library
Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.6high · scored by CNA · CWE-943
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
MongoDB PHP Library
- < 1.21.4
- >= 2.0.0, < 2.4.1
Fixed in 1.21.4, 2.4.1
MongoDB PHP Extension
- < 1.21.6
- >= 2.0.0, < 2.4.1
Fixed in 1.21.6, 2.4.1
Mitigation
Upgrade PHP Library to 1.21.4 or 2.4.1 or later.
Upgrade PHP Extension to 1.21.6 or 2.4.1 or later.
References
- Release notes github.com/mongodb/mongo-php-library/releases/…
- Release notes github.com/mongodb/mongo-php-library/releases/…
- Release notes github.com/mongodb/mongo-php-driver/releases/t…
1 more
- Release notes github.com/mongodb/mongo-php-driver/releases/t…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.