CVE-2026-106432

EUVD-2026-95234
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.2 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 6.48%
Affected Products (NVD)
VendorProductVersion
mongodbphp_driver
1.3.0 ≤
𝑥
< 1.21.1
mongodbphp_driver
2.0.0 ≤
𝑥
< 2.1.11
mongodbphp_driver
2.2.0 ≤
𝑥
< 2.5.4
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
php-mongodb
bookworm
vulnerable
forky
2.5.5-1
fixed
sid
2.5.5-1
fixed
trixie
vulnerable
trixie (security)
2.0.0-1+deb13u2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php-mongodb
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
noble
needs-triage
resolute
needs-triage
stonking
needs-triage
xenial
needs-triage