Skip to content
OpenAdvisories
Low · 3.6 CVE-2026-106432 EUVD-2026-95234

Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver

Published Oct 8, 2026 · Updated Oct 8, 2026 · Assigned by mongodb

Description

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.

Affected products

VendorProductAffectedFixed
MongoDB PHP Driver 1.16.0 – < 1.21.11, 2.0.0 – < 2.1.11, 2.2.0 – < 2.5.4 1.21.11

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