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.
CVE-2026-106432
CVSS base score
3.6 (v3.1)
Severity
LOW
Attack vector
Local
Weakness
CWE-681
Last modified
October 13, 2026
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
Affected products
mongodb php driver
References
- jira.mongodb.org Vendor Advisory