Skip to content
OpenAdvisories
Medium · 5.6 CVE-2026-96745 EUVD-2026-86264

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

Published Sep 24, 2026 · Updated Sep 24, 2026 · Assigned by mongodb

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 php-mongodb 2.5.3-1 —
Debian 13 php-mongodb 2.0.0-1+deb13u1 —
Debian 12 php-mongodb No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

References