Skip to content

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

LowCVSS 2.0 EPSS 0.17%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHPUbuntuDebian

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.

Upgrade path

8 packages: 3 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/php-mongodb(Debian 12) = 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 +10 more No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 26.10) All versions No fix listed No fix yet
debian/php-mongodb(Debian 13) < 2.0.0-1+deb13u2; = 2.0.0-1; = 2.0.0-1+deb13u1 2.0.0-1+deb13u2 Fixed
debian/php-mongodb(Debian 14) < 2.5.5-1; = 2.0.0-1; = 2.1.0-1; = 2.5.3-1 2.5.5-1 Fixed
MongoDB PHP Driver >= 1.3.0, < 1.21.1; >= 1.16.0, < 1.21.11; >= 2.0.0, < 2.1.11; >= 2.2.0, < 2.5.4 1.21.1, 1.21.11, 2.1.11, 2.5.4 Fixed

Affected products

ProductAffected versionsFixed in
MongoDB PHP Driver >= 1.16.0, < 1.21.11 1.21.11
MongoDB PHP Driver >= 2.0.0, < 2.1.11 2.1.11
MongoDB PHP Driver >= 2.2.0, < 2.5.4 2.5.4
debian/php-mongodb(Debian:12) All versions No fix listed
debian/php-mongodb(Debian:12) = 1.15.0+1.11.1+1.9.2+1.7.5-1 No fix listed
debian/php-mongodb(Debian:12) = 1.19.3-1 No fix listed
debian/php-mongodb(Debian:12) = 1.19.4-2 No fix listed
debian/php-mongodb(Debian:12) = 1.19.4-3~exp2 No fix listed
debian/php-mongodb(Debian:12) = 1.19.4-3~exp3 No fix listed
debian/php-mongodb(Debian:12) = 1.19.4-3~exp4 No fix listed
debian/php-mongodb(Debian:12) = 1.20.0-1 No fix listed
debian/php-mongodb(Debian:12) = 1.20.1-1 No fix listed
debian/php-mongodb(Debian:12) = 1.21.0-1 No fix listed
debian/php-mongodb(Debian:12) = 2.0.0-1 No fix listed
debian/php-mongodb(Debian:12) = 2.1.0-1 No fix listed
debian/php-mongodb(Debian:12) = 2.5.3-1 No fix listed
debian/php-mongodb(Debian:12) = 2.5.5-1 No fix listed
debian/php-mongodb(Debian:13) < 2.0.0-1+deb13u2 2.0.0-1+deb13u2
debian/php-mongodb(Debian:13) = 2.0.0-1 No fix listed
debian/php-mongodb(Debian:13) = 2.0.0-1+deb13u1 No fix listed
debian/php-mongodb(Debian:14) < 2.5.5-1 2.5.5-1
debian/php-mongodb(Debian:14) = 2.0.0-1 No fix listed
debian/php-mongodb(Debian:14) = 2.1.0-1 No fix listed
debian/php-mongodb(Debian:14) = 2.5.3-1 No fix listed
ubuntu/php-mongodb(Ubuntu:22.04) All versions No fix listed
Show 4 more
ProductAffected versionsFixed in
ubuntu/php-mongodb(Ubuntu:24.04) All versions No fix listed
ubuntu/php-mongodb(Ubuntu:26.04) All versions No fix listed
ubuntu/php-mongodb(Ubuntu:26.10) All versions No fix listed
MongoDB PHP Driver >= 1.3.0, < 1.21.1 1.21.1

References