CVE-2026-81525
Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver
Also known as GHSA-65fr-j4p9-vc33
Mitigation
- Upgrade mongodb/mongodb to one of 1.21.4, 2.4.1 (or later in the same release line).
Who should check
- Projects that depend on Packagist package mongodb/mongodb (< 1.21.4)
- Anyone running MongoDB PHP Library < 1.21.4; >= 2.0.0, < 2.4.1
- Anyone running MongoDB PHP Extension < 1.21.6; >= 2.0.0, < 2.4.1
Vulnerability facts
- Affected
- mongodb/mongodb < 1.21.4
- Fixed in
- 1.21.4, 2.4.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.6 (v4.0, 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:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.49% chance of exploitation in 30 days (percentile 35, 2026-11-26)
- CWE
- CWE-943
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist mongodb/mongodb | < 1.21.4 | 1.21.4, 2.4.1 | osv |
| MongoDB PHP Library | < 1.21.4; >= 2.0.0, < 2.4.1 | — | cvelist |
| MongoDB PHP Extension | < 1.21.6; >= 2.0.0, < 2.4.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-81525. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-81525.md Affected: mongodb/mongodb < 1.21.4 Fixed in: 1.21.4, 2.4.1 Steps: 1. Search this machine and project for mongodb/mongodb (Packagist), MongoDB PHP Library, MongoDB PHP Extension: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- 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
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.7
- https://github.com/mongodb/mongo-php-library
FAQ
Is CVE-2026-81525 being exploited?
There is no confirmed exploitation: CVE-2026-81525 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-81525?
High: CVSS 8.6 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-81525?
mongodb/mongodb < 1.21.4.
Is there a fix for CVE-2026-81525?
Yes. Fixed in 1.21.4, 2.4.1. Upgrade mongodb/mongodb to one of 1.21.4, 2.4.1 (or later in the same release line).
How do I check if I'm affected by CVE-2026-81525?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.