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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | php-mongodb | No fix yet | — |
| Debian 13 | php-mongodb | No fix yet | — |
| Debian 12 | php-mongodb | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | php-mongodb | No fix yet | — |
| Ubuntu 16.04 LTS | php-mongodb | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- WID-SEC-2026-3066 MongoDB Clients: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 16, 2026