CVE-2026-106432
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.
How to fix
- mongodb php_driver1.21.1, 2.1.11, 2.5.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mongodb php_driver | 1.3.0 ≤ v < 1.21.1, 2.0.0 ≤ v < 2.1.11, 2.2.0 ≤ v < 2.5.4 | 1.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.