Impact
The MongoDB PHP client library does not sanitize special characters in namespace identifiers that are built from user input. When an application concatenates untrusted text into a namespace string, database operations can silently target a different collection or namespace than intended, enabling an attacker to read or modify data belonging to another tenant.
Affected Systems
MongoDB PHP Extension and MongoDB PHP Library are exposed. All versions of the PHP driver and library that do not include the patch are vulnerable; the released safe versions are 1.21.6 or later for the driver and 1.21.4 or later for the library.
Risk and Exploitability
The CVSS score of 8.6 classifies this as high severity. No EPSS score is currently available, and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw by sending a specially crafted request that contains a dot or NUL byte in the namespace string, causing the repository to execute operations against an unintended namespace. This can result in cross‑tenant data disclosure or modification.
OpenCVE Enrichment
Github GHSA