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

Medium 6.3 Published Updated

An attacker can trigger PHP object injection in the MongoDB PHP Driver by controlling database content, potentially leading to code execution if vulnerable classes are present.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-96745?

CVE-2026-96745 is a medium-severity unsafe deserialization vulnerability in MongoDB PHP Driver, published on 24 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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-502

Which versions are affected by CVE-2026-96745?

How do I fix CVE-2026-96745?

Upgrade to a fixed version.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2026-96745 being exploited?

There is no known exploitation of CVE-2026-96745 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-96745, GHSA-cmvj-vxvq-rh2c, UBUNTU-CVE-2026-96745.

Is CVE-2026-96745 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free