What’s Vulnerable › Vulnerabilities

CVE-2026-112368: Unbounded Recursion in phongo_bson_visit_document/visit_array:

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.

Affected products

How to fix

Upgrade to a fixed version: MongoDB PHP Driver 1.21.12, 2.1.12, 2.5.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-112368 or the next vulnerability affects your stack