Skip to content
OpenAdvisories
High · 7.5 CVE-2026-112368 EUVD-2026-104414GHSA-69c3-9c25-6gj9

Unbounded Recursion in phongo_bson_visit_document/visit_array:

Published Oct 19, 2026 · Updated Oct 20, 2026 · Assigned by mongodb

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

VendorProductAffectedFixed
MongoDB PHP Driver 1.0.0 – < 1.21.12, 2.1.0 – < 2.1.12, 2.5.0 – < 2.5.5 1.21.12

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php-mongodb 2.5.5-1 —
Debian 13 php-mongodb 2.0.0-1+deb13u2 —
Debian 12 php-mongodb No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 php-mongodb No fix yet —
Ubuntu 26.04 LTS php-mongodb No fix yet —
Ubuntu 24.04 LTS php-mongodb No fix yet —
Ubuntu 22.04 LTS php-mongodb No fix yet —
Ubuntu 20.04 LTS php-mongodb No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS php-mongodb No fix yet —
Ubuntu 16.04 LTS php-mongodb No fix yet —

Advisories 1

References