p PatchFirst

CVE-2026-106432

CVE-2026-106432 · Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver

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

The BSON encoder in the MongoDB PHP Driver converts a string length to a 32-bit value without validation. When an affected application encodes a string near 4 GiB, the allocation size can wrap while the copy operation uses the original length. The resulting heap buffer overflow can corrupt process memory or terminate the PHP process. Reaching this issue requires a non-default runtime configuration that permits multi-gigabyte values. No MongoDB server interaction is required.

CVSS 2.0 · Low · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • php driver

    Versions
    • ≥ 1.16.0, < 1.21.11: Affected (semver)
    • ≥ 2.0.0, < 2.1.11: Affected (semver)
    • ≥ 2.2.0, < 2.5.4: Affected (semver)

    Update to 1.21.11; Update to 2.1.11; Update to 2.5.4

  • 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 →