# CVE-2026-106432: Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver

- Severity: Low 2.0 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-08T19:02:25.357Z
- Modified: 2026-10-13T20:09:23.800Z
- Weaknesses: CWE-681
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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
- 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

## Every score

- mongodb: CVSS:4.0 2.0 Low `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: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`

## References

- <https://jira.mongodb.org/browse/PHPC-2741> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-106432](https://www.cve.org/CVERecord?id=CVE-2026-106432), CVE Terms of Use, modified 2026-10-08
- NVD: [CVE-2026-106432](https://nvd.nist.gov/vuln/detail/CVE-2026-106432), Public domain, modified 2026-10-13

---

Page: https://cve.day/CVE-2026-106432 · Whole record: https://cve.day/CVE-2026-106432.json · Rebuilt by cve.day 2026-11-25T22:59:43.219Z
