CVE-2026-81525
HIGH 8.6CVSS 4.0mongodb: Reject "." and NUL bytes in database and collection names
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.
- Published
- 27 Aug 2026
- Last modified
- 29 Sep 2026
- Assigned by
- cna@mongodb.com
- NVD status
- Analyzed
- Weakness
- CWE-943
- Also known as
- GHSA-65fr-j4p9-vc33
- Sources
- NVDJSONOSV GHSA-65fr-j4p9-vc33JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@mongodb.com (Secondary) | CVSS 4.0 | HIGH 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/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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | cna@mongodb.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongodb | php_drivercpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:* |
< 1.21.6 | 1.21.6 |
| NVD | mongodb | php_drivercpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:* |
>= 2.0.0, < 2.4.1 | 2.4.1 |
| NVD | mongodb | php_librarycpe:2.3:a:mongodb:php_library:*:*:*:*:*:*:*:* |
< 1.21.4 | 1.21.4 |
| NVD | mongodb | php_librarycpe:2.3:a:mongodb:php_library:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.4.1 | 2.4.1 |
| OSV | Packagist | mongodb/mongodb | < 1.21.4 | 1.21.4 |
| OSV | Packagist | mongodb/mongodb | >= 2.0.0, < 2.4.1 | 2.4.1 |
References
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6 · Product, Release Notes, WEB
- https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1 · Product, Release Notes, WEB
- https://github.com/mongodb/mongo-php-library/releases/tag/1.21.4 · Product, Release Notes, WEB
- https://github.com/mongodb/mongo-php-library/releases/tag/2.4.1 · Product, Release Notes, WEB
- https://jira.mongodb.org/browse/PHPLIB-1927 · Vendor Advisory, WEB
- https://github.com/mongodb/mongo-php-library/security/advisories/GHSA-65fr-j4p9-vc33 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-81525 · ADVISORY
- https://github.com/mongodb/mongo-php-library/pull/1967 · WEB
- https://github.com/mongodb/mongo-php-library/pull/1968 · WEB
- https://github.com/mongodb/mongo-php-library/commit/3a462213bb4fd46efa58a1937b06b1b0553b67a7 · WEB
- https://github.com/mongodb/mongo-php-library/commit/6f305a3b21740080255a3093b12458274c7cc8ca · WEB
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.7 · WEB
- https://github.com/mongodb/mongo-php-library · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 27 Aug 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 8 Sep 2026)