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

- Priority: **Routine**
- Reason: Not severe (CVSS 2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-08 · Modified: 2026-10-08
- Aliases: DEBIAN-CVE-2026-106432, UBUNTU-CVE-2026-106432
- Record: https://cvemate.com/vulnerability/CVE-2026-106432 · JSON: https://cvemate.com/vulnerability/CVE-2026-106432/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- EPSS: 0.17%, percentile 6.678%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian php-mongodb (Debian): All versions (No fix recorded) \| \< 2.0.0-1+deb13u2 \| \< 2.5.5-1
- ubuntu php-mongodb (Ubuntu): All versions (No fix recorded)
- mongodb php driver: ≥ 1.16.0, \< 1.21.11 \| ≥ 1.3.0, \< 1.21.1 \| ≥ 2.0.0, \< 2.1.11 \| ≥ 2.2.0, \< 2.5.4

## References

- <https://jira.mongodb.org/browse/PHPC-2741>
- <https://security-tracker.debian.org/tracker/CVE-2026-106432>
- <https://ubuntu.com/security/CVE-2026-106432>
- <https://www.cve.org/CVERecord?id=CVE-2026-106432>

---

Data as of 2026-12-05T06:22:59.438Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
