Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach endpoint that decodes untrusted BSON
-
ExploitSupply crafted deeply nested document
-
ExecutionTrigger uncontrolled recursion in decoder
-
ImpactExhaust process stack, crash PHP process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Exploitation requires that the PHP application pass attacker-controlled binary BSON data into the MongoDB PHP driver's BSON decoding path (e.g., deserializing untrusted BSON via the driver rather than only decoding trusted responses from a MongoDB server). The attacker must be able to deliver a crafted, recursively nested BSON document to that code path; no authentication is needed (PR:N) and no user interaction is required (UI:N). The key limiting factor (reflected as AT:P in the CVSS 4.0 vector) is this deployment condition: applications that only decode BSON originating from a trusted database are largely unexposed, while those accepting BSON from clients or external sources are directly at risk. Because the recursion fault occurs in native code below the PHP layer, standard PHP exception/error handling cannot intercept or mitigate the crash. |
| Impact | This is a genuine but bounded availability risk, not a top-tier priority. The CVSS 4.0 base score of 8.2 is driven entirely by VA:H (high availability impact) with VC:N/VI:N - there is NO confidentiality or integrity impact, so the 'Information Disclosure' tag in the input is incorrect and contradicts the CVSS vector. The vector (AV:N/PR:N/UI:N) indicates a remote, unauthenticated trigger, but AT:P signals that successful exploitation depends on a condition outside the attacker's control: the application must actually feed attacker-supplied BSON data into the driver's decoder. No EPSS score, CISA KEV listing, or public exploit was provided in the input, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The realistic worst case is a denial of service (process crash) against PHP applications that decode untrusted BSON; it cannot be used for RCE or data theft. Net: a real, patch-worthy DoS issue whose true exposure hinges on whether the application decodes untrusted binary data, rather than a broadly wormable critical flaw. |
| Exploit ScenarioDerived | An attacker submits a crafted, deeply/recursively nested binary BSON document to a PHP application endpoint that passes untrusted data into the MongoDB PHP driver's BSON decoder. The decoder recurses without bound and exhausts the process stack, crashing the PHP worker and denying service to legitimate users. No authentication is required (PR:N), and because the fault occurs in native code below the PHP layer it cannot be caught by application-level try/catch handling. No public exploit was identified in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Stack exhaustion in the MongoDB PHP driver's BSON decoder allows unauthenticated attackers to terminate PHP processes that process crafted binary documents, causing availability loss. The issue affects driver deployments where application code passes attacker-controlled BSON into the decoder rather than only decoding trusted server responses; no public exploit code has been identified at time of analysis, and the CVSS 4.0 AT:P prerequisite reflects that deployment condition.
RemediationAI
Upgrade to the fixed MongoDB PHP driver version identified in the vendor tracking issue PHPC-276 once that release is confirmed; the provided data does not give an exact fix version, so verify the release notes before deployment. Until then, prevent untrusted BSON from reaching the decoder: only decode documents received from trusted MongoDB servers, and for any ingestion of external BSON enforce a strict maximum nesting depth and document size at the application boundary before calling the driver, accepting that legitimate deeply nested documents may be rejected. Because the crash occurs in native code below PHP, run BSON decoding in an isolated worker or subprocess with OS-level stack and memory limits and a supervisor that restarts crashed workers; trade-offs include added complexity, latency, and operational overhead. PHP try/catch blocks will not mitigate the stack exhaustion.
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 driver is a PHP extension that relies on native BSON encoding and decoding routines to handle MongoDB documents. CWE-674 uncontrolled recursion means the decoder follows nested document or array structures without an adequate depth bound; a crafted deeply nested BSON payload can exhaust the process stack and crash the PHP process. Because the fault occurs in native code below the PHP runtime, PHP exception handlers and application-level error handling cannot intercept or mitigate it. The supplied CPE wildcard covers the driver without a version restriction, and the CVSS 4.0 vector scores availability high (VA:H) with confidentiality and integrity unaffected; the independent CVSS 3.1 assessment is AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Exploitation requires a code path that decodes untrusted BSON.
Know when Php Driver 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:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Remote unauthenticated trigger via crafted BSON (AV:N/PR:N/UI:N); crafting recursive input is trivial (AC:L); only the PHP process crashes, so C:N/I:N/A:H, S:U.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
An uncontrolled recursion weakness in the BSON decoding logic of the MongoDB PHP driver may allow an unauthenticated party who can supply crafted binary document data to the decoder to exhaust the process stack. This may cause the PHP process using the driver to terminate unexpectedly, resulting in a loss of availability for that process. The condition occurs below the PHP layer and cannot be intercepted by application-level error handling.
Articles & Coverage 1
Executive ViewAI
A stack-exhaustion flaw in the MongoDB PHP driver's BSON decoder (CVE-2026-112368) can crash the PHP worker processes that parse binary documents, degrading or taking down services built on this driver. Exposure is limited to applications that hand externally supplied BSON to the decoder rather than only parsing trusted responses from the database, so risk is concentrated in teams handling user uploads, proxying layers, or custom endpoints that accept binary payloads. Leadership should care because a crash in shared PHP-FPM pools can cascade into customer-facing outages, and no vendor patch is yet available.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict BSON decoding to trusted MongoDB server responses only; enforce maximum payload size and nesting-depth limits before decoding; isolate decoding in disposable worker processes with memory/stack caps, timeouts, and automatic restart; block or quarantine untrusted BSON ingestion paths (uploads, proxies, custom endpoints); monitor PHP worker crash and restart rates for early warning.
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
More in Php Driver
View allNamespace injection in the MongoDB PHP Library allows attackers with application-level access to silently redirect datab
Incorrect validation of files loaded from a local untrusted directory may allow local privilege escalation if the underl
Out-of-bounds read in the BSON decoding component of the MongoDB PHP Driver (all versions per CPE cpe:2.3:a:mongodb:php_
A mongoc_bulk_operation_t may read invalid memory if large options are passed. Rated medium severity (CVSS 6.9), this vu
Encoding an oversized document with the MongoDB PHP Driver can leave the BSON encoder in an invalid state because libbso
Deserialization of untrusted document content in the MongoDB PHP Driver (CWE-502) lets class names embedded in a field s
Stack exhaustion in MongoDB PHP driver allows remote denial of service when processing deeply nested BSON documents from
Heap buffer overflow in the MongoDB PHP Driver's BSON encoder can corrupt process memory or crash the PHP process when a
EUVD-2026-104414
GHSA-69c3-9c25-6gj9
NVD
CVE.org
EPSS
Exploit-DB