Skip to main content

MongoDB PHP Driver EUVDEUVD-2026-86264

| CVE-2026-96745 MEDIUM
Deserialization of Untrusted Data (CWE-502)
2026-09-24 mongodb
6.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker submits crafted data to app
  2. Delivery
    Data written into MongoDB operation
  3. Exploit
    Command monitoring builds event object
  4. Execution
    Malicious __pclass class instantiated
  5. Persist
    unserialize invoked on attacker data
  6. Impact
    Gadget-dependent impact in app context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the PHP application (1) registers a command monitoring subscriber via the MongoDB driver, and (2) passes attacker-controlled/untrusted data into a database operation whose document content is reflected in monitoring events. The attacker must embed a __pclass class name resolving to an application class that implements the driver's Persistable interface, and meaningful impact further depends on the gadget classes actually available in the deployment. Limiting factors: command monitoring is an opt-in instrumentation feature (not default), AC:H reflects the crafting and gadget-availability requirements, and while the malicious data source is unauthenticated (PR:N), no direct code execution is guaranteed - impact ranges from benign to severe based on the app's class landscape. Fixed in driver versions 1.21.10, 2.1.10, and 2.5.3.

Impact

This is a genuine but conditional deserialization flaw (CWE-502) in the MongoDB PHP Driver, rated CVSS 4.0 6.3 (medium) by the reporting vendor (MongoDB) with vector AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L. The network vector and PR:N make it reachable by an unauthenticated data source, but AC:H is well-justified: exploitation requires the application to have registered a command monitoring subscriber (a non-default instrumentation feature) AND to pass attacker-influenced data into a database operation, after which a malicious __pclass value can force instantiation of an application class implementing the driver's Persistable interface and invoke its unserialize method. Actual impact is explicitly gadget-dependent - the vendor's uniformly Low VC/VI/VA reflects that consequences hinge on which classes exist in the target application, so severity could be higher in a specific app with a useful gadget chain but is Low in the base case. There is no EPSS score, no CISA KEV listing, and no public exploit or POC in the provided data (no public exploit identified at time of analysis). No SSVC decision framework data was supplied. The combination of a non-default prerequisite, AC:H, and absent exploitation signals makes this a moderate-priority patch item (upgrade to a fixed release) rather than an urgent emergency, but PHP+MongoDB shops running command monitoring should prioritize it.

Exploit ScenarioDerived

A PHP application using the MongoDB driver registers a command monitoring subscriber (e.g., for observability/APM) and writes user-supplied data into a document. An unauthenticated attacker who controls that data embeds a crafted __pclass class name so that when the driver builds a monitoring event object, an application Persistable class is instantiated and its unserialize method runs on attacker data; the resulting effect depends entirely on available gadget classes. No public POC or exploit code was identified.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 24, 2026

Deserialization of untrusted document content in the MongoDB PHP Driver (CWE-502) lets class names embedded in a field such as __pclass be honored when the driver constructs command-monitoring event objects, so an unauthenticated party who controls data flowing into a database operation can cause an application class implementing the driver's persistable interface to be instantiated and have its unserialization method invoked. The flaw only bites applications that (1) register a command monitoring subscriber and (2) pass attacker-controlled data into an operation reflected in monitoring events; impact ranges from benign to severe depending on which gadget classes exist in the deployment, which is why the vendor rates it 6.3 (CVSS 4.0, AV:N/AC:H/PR:N/UI:N/VC:L/VI:L/VA:L) and our independent assessment lands at CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L. No public exploit code or confirmed active exploitation has been identified at time of analysis; vendor-released patches are available in driver versions 1.21.10, 2.1.10 and 2.5.3.

RemediationAI

Upgrade the PECL mongodb extension to a vendor-released fixed version, choosing the line that matches your PHP compatibility: 1.21.10, 2.1.10 or 2.5.3 (https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.10, https://github.com/mongodb/mongo-php-driver/releases/tag/2.1.10, https://github.com/mongodb/mongo-php-driver/releases/tag/2.5.3); installation examples include pie install mongodb/mongodb-extension:2.5.3 or the equivalent PECL package. The code change is the __pclass inference fix in https://github.com/mongodb/mongo-php-driver/pull/2115, so any patch must include that commit rather than only a libmongoc bump. If immediate upgrade is not possible, the most effective compensating control is to avoid passing untrusted input into operations covered by an active command monitoring subscriber, or to temporarily deregister command monitoring subscribers (set the monitor to null / skip subscribing) in request paths that handle untrusted data - the trade-off is loss of APM traces, slow-query telemetry and profiling data for those paths. A narrower mitigation is to sanitize or strip __pclass keys (and any other class-name hints) from documents before they reach the driver, and to audit the autoloadable class space for classes implementing the driver's Persistable interface or otherwise usable as gadgets, removing or hardening them; both approaches require application-level code changes, can break legitimate persistable-object usage, and are weaker than patching because they rely on every untrusted data path being correctly identified. Note that the absence of public exploit code at time of analysis is not a reason to defer patching, as the fix is readily available and the trigger condition depends entirely on deployment configuration.

Affected VersionsENISA

PHP Driver 2.2.0 <2.5.3
PHP Driver 0 <1.21.10
PHP Driver 2.0.0 <2.1.10

Affected Packages

euvd php_driver fix: 1.21.10, 2.1.10, 2.5.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The MongoDB PHP extension implements the client side of the MongoDB wire protocol and exposes a command monitoring API (the PECL mongodb extension, cpe:2.3:a:mongodb:php_driver). When an application registers a command monitoring subscriber, the driver materializes monitoring event objects from the commands and replies it sends and receives, including document content that originated from the application's own database operations. CWE-502 (Deserialization of Untrusted Data) applies because the driver inferred the PHP class for those event payloads from a class-name hint embedded in the document itself - the __pclass field - rather than from a trusted type mapping. If the supplied __pclass value resolves to an application class that implements the driver's Persistable interface, the driver instantiates that class and calls its unserialization method with the attacker-supplied data, giving the attacker a hook into application code. The root cause is fixed in upstream commit referenced by PR #2115 ('Fix __pclass inference in events'), which was shipped alongside a libmongoc upgrade (PHPC-2773) in the 2.5.3 release train. Because the trigger is an opt-in instrumentation path and the attacker must both control reflected document content and have a useful Persistable-implementing or gadget class autoloadable, the access complexity is high and impact is bounded by the application's own class landscape rather than by the driver itself.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 6.3 MEDIUM
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
vuln.today AI 5.6 MEDIUM

Untrusted data source is unauthenticated (PR:N) but exploitation needs an opt-in monitoring subscriber plus a usable gadget class, so AC:H; base impacts Low and gadget-dependent.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Sep 24, 2026 - 17:18 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
widely-used official PHP driver for MongoDB, but flaw needs non-default monitoring subscriber
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy