All vulnerabilities
CVE-2026-112368

PHP Driver: Unbounded Recursion in phongo_bson_visit_document/visit_array:

MongoDB Inc. PHP DriverRuntimes & languages
CVSS
8.2High
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.26%Chance of exploitation activity in the next 30 days, higher than 17% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in1.21.12Also 2.1.12, 2.5.5CVE List
Published19 Oct 2026Updated 20 Oct 2026CVE List

What fixes it

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

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.

Text from CVE List

Affected versions 3

  • PHP Driveraffected: 1.0.0 before 1.21.12CVE List
  • PHP Driveraffected: 2.1.0 before 2.1.12CVE List
  • PHP Driveraffected: 2.5.0 before 2.5.5CVE List

References 1