CVE-2026-81525
8.6
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
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| MongoDB | PHP Library | 0 < 1.21.4 | affected |
| MongoDB | PHP Library | 2.0.0 < 2.4.1 | affected |
| MongoDB | PHP Extension | 0 < 1.21.6 | affected |
| MongoDB | PHP Extension | 2.0.0 < 2.4.1 | affected |
Weaknesses
- CWE-943: CWE-943: Improper Neutralization of Special Elements in Data Query Logic
References
- https://jira.mongodb.org/browse/PHPLIB-1927
- 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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.