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.
Published: 2026-09-24
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Potential remote code execution via deserialization
Action: Apply Patch
AI Analysis

Impact

Deserialization of untrusted data is used by the MongoDB PHP Driver to create command monitoring event objects. An attacker can embed a class name in the document data that is being sent to the database. Because the driver does not suppress __pclass inference for monitoring events, the class name is honored and the application class that implements the driver's persistable interface is instantiated. If that class performs operations during unserialization, the attacker may cause unintended code execution. The impact depends on the classes available in the application and could include code execution if the unserialization method performs critical actions.

Affected Systems

MongoDB PHP Driver, versions prior to 1.21.10, 2.1.10, or 2.5.3 may be vulnerable.

Risk and Exploitability

CVSS score 6.3 indicates moderate severity. EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, so current exploitation likelihood is uncertain. The vulnerability is triggered when an application registers a command monitoring subscriber and includes untrusted document content in a database operation; an unauthenticated actor who can influence that content may cause the driver to instantiate a class from the application code base. Attack requires only the ability to inject data into the database operation, making the vector likely local or remote depending on how the application accepts input. Because the weakness is a deserialization flaw (CWE-502), exploitation may be easier if the application contains a class that implements the persistable interface and executes meaningful code during unserialization.

Generated by OpenCVE AI on September 25, 2026 at 07:35 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update MongoDB PHP Driver to version 1.21.10, 2.1.10, 2.5.3, or newer.
  • If a patch cannot be applied immediately, disable command monitoring subscribers that process untrusted data, or sanitize the data to remove any embedded class names before sending to the driver.
  • Review the application for any classes that implement the driver's persistable interface and remove or rename those that could be unintentionally instantiated from untrusted payloads.

Generated by OpenCVE AI on September 25, 2026 at 07:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6539-1 php-mongodb security update
History

Thu, 24 Sep 2026 22:30:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb php Driver
Vendors & Products Mongodb
Mongodb php Driver

Thu, 24 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 24 Sep 2026 18:30:00 +0000


Thu, 24 Sep 2026 16:00:00 +0000

Type Values Removed Values Added
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.
Title PHP object injection via unsuppressible __pclass class inference in command monitoring events
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 5.6, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

Mongodb Php Driver
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-09-24T18:18:09.854Z

Reserved: 2026-09-23T15:45:49.109Z

Link: CVE-2026-96745

cve-icon Vulnrichment

Updated: 2026-09-24T17:22:35.239Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-24T16:17:27.293

Modified: 2026-09-24T21:04:40.340

Link: CVE-2026-96745

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T07:45:18Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data