Skip to main content

MongoDB PHP Driver CVE-2026-112368

| EUVDEUVD-2026-104414 HIGH
Uncontrolled Recursion (CWE-674)
2026-10-19 mongodb GHSA-69c3-9c25-6gj9
8.2
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Reach endpoint that decodes untrusted BSON
  2. Exploit
    Supply crafted deeply nested document
  3. Execution
    Trigger uncontrolled recursion in decoder
  4. Impact
    Exhaust 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – 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

PHP Driver 2.1.0 <2.1.12
PHP Driver 1.0.0 <1.21.12
PHP Driver 2.5.0 <2.5.5

Affected Packages

euvd php_driver fix: 1.21.12, 2.1.12, 2.5.5

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

Vendor (mongodb) PRIMARY 8.2 HIGH
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
vuln.today AI 7.5 HIGH

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.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

2
Patch available
Oct 19, 2026 - 17:17 EUVD
CVE Published
Oct 19, 2026 - 15:49 cve.org
HIGH 8.2

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
widely used MongoDB driver for PHP, common but not universal
Data Quality
4 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

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

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