What’s Vulnerable › Vulnerabilities
CVE-2026-96745: PHP object injection via unsuppressible __pclass class inference in command monitoring events
- Severity: medium (CVSS 5.6 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-24 · updated 2026-09-24
- Weakness: CWE-502
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
- MongoDB PHP Driver: before 1.21.10; from 2.0.0 before 2.1.10; from 2.2.0 before 2.5.3 — fixed in 1.21.10, 2.1.10, 2.5.3
How to fix
Upgrade to a fixed version: MongoDB PHP Driver 1.21.10, 2.1.10, 2.5.3. Check the vendor advisory for mitigations.
References
- https://github.com/mongodb/mongo-php-driver/pull/2115
- 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/security/advisories/GHSA-cmvj-vxvq-rh2c
Get alerted when CVE-2026-96745 or the next vulnerability affects your stack