p PatchFirst

CVE-2026-112368

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.2 · High · EPSS 0.3% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • php driver

    Versions
    • ≥ 1.0.0, < 1.21.12: Affected (semver)
    • ≥ 2.1.0, < 2.1.12: Affected (semver)
    • ≥ 2.5.0, < 2.5.5: Affected (semver)

    Update to 1.21.12; Update to 2.1.12; Update to 2.5.5

  • php-mongodb Debian:12

    Versions
    • 1.15.0+1.11.1+1.9.2+1.7.5-1
    • 1.19.3-1
    • 1.19.4-2
    • 1.19.4-3~exp2
    • 1.19.4-3~exp3
    • 1.19.4-3~exp4
    • 1.20.0-1
    • 1.20.1-1
    • 1.21.0-1
    • 2.0.0-1
    • 2.1.0-1
    • 2.5.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-mongodb Debian:13

    Versions
    • 2.0.0-1
    • 2.0.0-1+deb13u1
    • 2.1.0-1
    • 2.5.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-mongodb Debian:14

    Versions
    • 2.0.0-1
    • 2.1.0-1
    • 2.5.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-mongodb Ubuntu:16.04:LTS

    Versions
    • 1.1.2-2~ubuntu1
    • 1.1.5-1~build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-mongodb Ubuntu:18.04:LTS

    Versions
    • 1.2.3-1build1
    • 1.3.4-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-mongodb Ubuntu:20.04:LTS

    Versions
    • 1.5.5-1build1
    • 1.6.1-4
    • 1.6.1-4build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-mongodb Ubuntu:22.04:LTS

    Versions
    • 1.9.0+1.7.5-2build2
    • 1.11.1+1.9.2+1.7.5-4
    • 1.12.0+1.9.2+1.7.5-3
    • 1.12.0+1.9.2+1.7.5-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-mongodb Ubuntu:24.04:LTS

    Versions
    • 1.15.0+1.11.1+1.9.2+1.7.5-1build1
    • 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu1
    • 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu2
    • 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-mongodb Ubuntu:26.10

    Versions
    • 2.1.7-0ubuntu1
    • 2.1.7-0ubuntu2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • php-mongodb Ubuntu:26.04:LTS

    Versions
    • 2.1.0-1
    • 2.1.7-0ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →