CyberRota Analysis
AI-GeneratedThe MongoDB PHP Driver is vulnerable due to its BSON encoder, which improperly handles string lengths, potentially leading to a heap buffer overflow when encoding strings close to 4 GiB. This flaw can corrupt process memory or crash the PHP process, but it requires specific non-default runtime configurations to exploit. Developers and system administrators using the MongoDB PHP Driver in environments where large string values are processed should prioritize addressing this vulnerability.
Original NVD 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.