CVE-2026-106432

Low

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.

SeverityLow
CVSS3.6
Exploit probability—
ProductMongodb Php Driver
PublishedOct 8, 2026
First seenOct 8, 2026
Weakness typeCWE-681CWE-681

How to fix

Update
  • mongodb php_driver1.21.1, 2.1.11, 2.5.4 or later

Affected products

ProductAffected versionsFixed in
mongodb php_driver1.3.0 ≤ v < 1.21.1, 2.0.0 ≤ v < 2.1.11, 2.2.0 ≤ v < 2.5.41.21.1, 2.1.11, 2.5.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.