CVE-2026-96745

PHP object injection via unsuppressible __pclass class inference in command monitoring events

State
Published
Severity
6.3 Medium
Published
Sep 24, 2026
Updated
Sep 24, 2026
Reserved
Sep 23, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.3 MediumCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:Nmongodb
3.15.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:Lmongodb

Weaknesses

  • CWE-502 Deserialization of Untrusted Data

Affected Products

ProductVersions
PHP DriverMongoDB
  • before 1.21.10Affected
  • 2.0.0 to before 2.1.10Affected
  • 2.2.0 to before 2.5.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.