CVE Catalog

CVE-2026-106432

LowCVSS 3.6
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.17%

6th percentile - higher than 6% of all known CVEs

Summary

The BSON encoder in the MongoDB PHP Driver converts a string length to a 32-bit value without validation. For strings near 4 GiB, allocation can wrap while copy uses original length, causing heap buffer overflow. Requires non-default runtime configuration allowing multi-gigabyte values.

Risk Assessment

Buffer overflow can corrupt process memory or crash the PHP process, potentially leading to denial of service or arbitrary code execution.

Recommendation

Upgrade the MongoDB PHP Driver to a patched version. Limit the size of processed data and avoid configurations allowing very large values.

Other vulnerabilities in MongoDB PHP Driver

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS