Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker submits crafted data to app
-
DeliveryData written into MongoDB operation
-
ExploitCommand monitoring builds event object
-
ExecutionMalicious __pclass class instantiated
-
Persistunserialize invoked on attacker data
-
ImpactGadget-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 |
| 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
EUVD-2026-86264
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB