Skip to content
OpenAdvisories
High · 8.1 CVE-2026-81525 EUVD-2026-67209GHSA-65fr-j4p9-vc33

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

Published Aug 27, 2026 · Updated Aug 28, 2026 · Assigned by mongodb

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 products

VendorProductAffectedFixed
MongoDB PHP Library < 1.21.4, 2.0.0 – < 2.4.1 1.21.4
MongoDB PHP Extension < 1.21.6, 2.0.0 – < 2.4.1 1.21.6

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php-mongodb No fix yet —
Debian 13 php-mongodb No fix yet —
Debian 12 php-mongodb No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 php-mongodb No fix yet —
Ubuntu 26.04 LTS php-mongodb No fix yet —
Ubuntu 24.04 LTS php-mongodb No fix yet —
Ubuntu 22.04 LTS php-mongodb No fix yet —
Ubuntu 20.04 LTS php-mongodb No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS php-mongodb No fix yet —
Ubuntu 16.04 LTS php-mongodb No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist mongodb/mongodb < 1.21.4 1.21.4 GHSA-65fr-j4p9-vc33
Packagist mongodb/mongodb >= 2.0.0, < 2.4.1 2.4.1 GHSA-65fr-j4p9-vc33

Advisories 1

References