# CVE-2026-106432: The BSON encoder in the MongoDB PHP Driver converts a string length to a 32-bit value without validation. When an…

Source: https://junglewise.ai/threats/cve-2026-106432-the-bson-encoder-in-the-mongodb-php-driver-converts-a-string  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-08  
License: CC BY 4.0 with a link back

CVE-2026-106432 · Severity: low · CVSS 3.6 · Published 2026-10-08

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.

Technologies: [MongoDB PHP Driver](https://junglewise.ai/threats/technologies/php-driver). Vendors: [MongoDB](https://junglewise.ai/threats/vendors/mongodb).

## Quick answers

**Is CVE-2026-106432 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-106432 being exploited in the wild.

**How severe is CVE-2026-106432?** Low severity, with a CVSS score of 3.6, published 8 October 2026.

**Which products and versions are affected?** MongoDB PHP Driver. The advisory does not name versions.

**Is there a fix for CVE-2026-106432?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2026-106432?** Check whether you run MongoDB PHP Driver. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- MongoDB PHP Driver

## Related threats

- [MongoDB PHP driver uncontrolled recursion in BSON decoding](https://junglewise.ai/threats/cve-2026-112368-an-uncontrolled-recursion-weakness-in-the-bson-decoding-logic-of)
- [MongoDB PHP Driver BSON encoder unchecked return values](https://junglewise.ai/threats/cve-2026-106436-the-bson-encoder-in-the-mongodb-php-driver-does-not-check-some)
- [MongoDB PHP Driver deserialization of untrusted data in command monitoring](https://junglewise.ai/threats/cve-2026-96745-deserialization-of-untrusted-data-in-the-command-monitoring)
- [MongoDB PHP Driver out-of-bounds read in BSON decoding](https://junglewise.ai/threats/cve-2026-84968-mongodb-php-driver-out-of-bounds-read-in-bson-decoding)
- [Stack exhaustion vulnerability in the MongoDB PHP driver can cause application crashes when processing deeply nested…](https://junglewise.ai/threats/cve-2026-6811-mongodb-php-driver-stack-exhaustion-in-bson-processing)
