CVE-2026-81525
JSON

8.6high

Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver

Severity
8.6high CVSS:4.0 by mongodb
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mongodb
Also known as
GHSA-65fr-j4p9-vc33

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

Product or packageVersionsReported by
MongoDB PHP Librarybefore 1.21.4, from 2.0.0 before 2.4.1CVE List
MongoDB PHP Extensionbefore 1.21.6, from 2.0.0 before 2.4.1CVE List
mongodb/mongodb (Packagist)before 1.21.4, from 2.0.0 before 2.4.1GitHub Advisory Database
mongodb php_driverbefore 1.21.6, from 2.0.0 before 2.4.1NVD
mongodb php_librarybefore 1.21.4, from 2.0.0 before 2.4.1NVD

All scores

mongodb8.6high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
mongodb8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Classification

CWE-943

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Passing untrusted input as part of a database or collection name may result in targeting a different database or collection than specified.

Patches

Fixed in PHP library 1.21.4 and 2.4.1.

Workarounds

Validate database and collection names prior to passing into APIs.

References

https://jira.mongodb.org/browse/PHPLIB-1927vendor-advisory, web
https://github.com/mongodb/mongo-php-library/releases/tag/1.21.4product, release-notes, web
https://github.com/mongodb/mongo-php-library/releases/tag/2.4.1product, release-notes, web
https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.6product, release-notes, web
https://github.com/mongodb/mongo-php-driver/releases/tag/2.4.1product, release-notes, web
https://github.com/mongodb/mongo-php-library/security/advisories/GHSA-65fr-j4p9-vc33web
https://nvd.nist.gov/vuln/detail/CVE-2026-81525advisory
https://github.com/mongodb/mongo-php-library/pull/1967web
https://github.com/mongodb/mongo-php-library/pull/1968web
https://github.com/mongodb/mongo-php-library/commit/3a462213bb4fd46efa58a1937b06b1b0553b67a7web
https://github.com/mongodb/mongo-php-library/commit/6f305a3b21740080255a3093b12458274c7cc8caweb
https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.7web

Sources

SourceRecordLicence
CVE ListCVE-2026-81525 changed 2026-08-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-65fr-j4p9-vc33 changed 2026-09-08CC-BY-4.0
NVDCVE-2026-81525 changed 2026-09-29Public domain