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 products
mongodb: php driver; mongodb: php library
References5
- jira.mongodb.org/browse/PHPLIB-1927 Vendor Advisory
- github.com/mongodb/mongo-php-driver/releases/tag/1.21.6 ProductRelease Notes
- github.com/mongodb/mongo-php-driver/releases/tag/2.4.1 ProductRelease Notes
- github.com/mongodb/mongo-php-library/releases/tag/1.21.4 ProductRelease Notes
- github.com/mongodb/mongo-php-library/releases/tag/2.4.1 ProductRelease Notes
Metrics
- CVSS 3.1
-
8.1
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - CVSS 4.0
-
8.6
HIGH
Score source: CNA
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 42 · as of 8 November 2026
- CWE
- CWE-943
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.