8.1High

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

MongoDB PHP Library; MongoDB PHP Extension Published: (2 months ago)

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.

Weakness (CWE): CWE-943

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
mongodb php driver < 1.21.6
MongoDB PHP Extension < 1.21.6, 2.0.0 – < 2.4.1
MongoDB PHP Library < 1.21.4, 2.0.0 – < 2.4.1

References and patches

CPE matches (NVD) (4)

  • cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:* < 1.21.6
  • cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:* ≥ 2.0.0 < 2.4.1
  • cpe:2.3:a:mongodb:php_library:*:*:*:*:*:*:*:* < 1.21.4
  • cpe:2.3:a:mongodb:php_library:*:*:*:*:*:*:*:* ≥ 2.0.0 < 2.4.1