CVE-2026-106432
2.0low
Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver
- Severity
- 2.0low CVSS:4.0 by mongodb
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| MongoDB PHP Driver | from 1.16.0 before 1.21.11, from 2.0.0 before 2.1.11, from 2.2.0 before 2.5.4 | CVE List |
| mongodb php_driver | from 1.3.0 before 1.21.1, from 2.0.0 before 2.1.11, from 2.2.0 before 2.5.4 | NVD |
All scores
| mongodb | 2.0low CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| mongodb | 3.6low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L |
| NVD | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
| https://jira.mongodb.org/browse/PHPC-2741 | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-106432 changed 2026-10-08 | CVE Terms of Use |
| NVD | CVE-2026-106432 changed 2026-10-13 | Public domain |