Description
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.
Published: 2026-10-19
Score: 8.2 High
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Patch Now
AI Analysis

Impact

An uncontrolled recursion flaw exists in the BSON decoding logic of the MongoDB PHP driver. When a crafted binary document containing deeply nested arrays or subdocuments is parsed, the decoder repeatedly calls its visit functions without limiting depth, eventually exhausting the process stack. This causes the PHP process that uses the driver to terminate and cannot be recovered by application‑level error handling. The weakness is classified as CWE-674 (Uncontrolled Recursion). The result is a loss of availability for the affected PHP service.

Affected Systems

The vulnerability affects MongoDB Inc.’s PHP Driver for PHP. No specific version information is provided, so all installations that use the driver without the latest patch may be vulnerable.

Risk and Exploitability

The vulnerability scores a CVSS of 8.2, indicating high severity. EPSS data are not reported and the flaw is not listed in the CISA KEV catalog. The likely attack vector is delivering crafted BSON data to the PHP driver, most probably over the database connection or through application input, which can trigger stack exhaustion remotely. As the flaw resides below the PHP layer, it bypasses normal application error handling and can be executed without authentication.

Generated by OpenCVE AI on October 19, 2026 at 18:40 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest patched MongoDB PHP driver version released by MongoDB Inc. that addresses the recursion flaw.
  • Configure the application or web server to reject overly large BSON payloads or deeply nested structures before invoking the driver.
  • Implement process supervision to automatically restart the PHP worker process and monitor for sudden terminations, alerting administrators promptly.

Generated by OpenCVE AI on October 19, 2026 at 18:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Mon, 19 Oct 2026 20:00:00 +0000

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

Mon, 19 Oct 2026 16:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Unbounded Recursion in phongo_bson_visit_document/visit_array:
Weaknesses CWE-674
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.2, 'vector': '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'}


Subscriptions

Mongodb Php Driver
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-10-19T15:49:16.053Z

Reserved: 2026-10-19T15:43:27.356Z

Link: CVE-2026-112368

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-19T16:17:07.650

Modified: 2026-10-19T21:13:39.973

Link: CVE-2026-112368

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T19:45:02Z

Weaknesses