Description
Deserialization of untrusted data in the command monitoring support of the MongoDB PHP Driver can cause class names embedded in document content to be honored when the driver builds monitoring event objects. When an application registers a command monitoring subscriber and includes untrusted data in a database operation, an unauthenticated party who controls that data may cause an application class implementing the driver's persistable interface to be instantiated and its unserialization method invoked with the supplied data. The resulting impact depends on the classes available in the application.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MongoDB | PHP Driver | < 1.21.10, 2.0.0 – < 2.1.10, 2.2.0 – < 2.5.3 | 1.21.10 |
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 | 2.5.3-1 | — |
| Debian 13 | php-mongodb | 2.0.0-1+deb13u1 | — |
| Debian 12 | php-mongodb | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pymongo | No fix yet | — |
| Ubuntu 26.04 LTS | pymongo | No fix yet | — |
| Ubuntu 24.04 LTS | pymongo | No fix yet | — |
| Ubuntu 22.04 LTS | pymongo | No fix yet | — |
| Ubuntu 20.04 LTS | pymongo | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | pymongo | No fix yet | — |
| Ubuntu Pro 18.04 LTS | pymongo | No fix yet | — |
| Ubuntu Pro 16.04 LTS | pymongo | No fix yet | — |
Advisories 1
- WID-SEC-2026-3583 MongoDB Treiber (Python Driver, PHP Driver, C Driver, Compass und Laravel): Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 4, 2026
References
- https://github.com/mongodb/mongo-php-driver/security/advisories/GHSA-cmvj-vxvq-rh2c
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.10
- https://github.com/mongodb/mongo-php-driver/releases/tag/2.1.10
- https://github.com/mongodb/mongo-php-driver/releases/tag/2.5.3
- https://github.com/mongodb/mongo-php-driver/pull/2115