5.6Medium

CVE-2026-96745PHP object injection via unsuppressible __pclass class inference in command monitoring events

MongoDB PHP Driver Published: (1 month ago)

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.

Weakness (CWE): CWE-502

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.10, 2.0.0 – < 2.1.10, 2.2.0 – < 2.5.3

References and patches