CVE-2026-106432
The BSON encoder in the MongoDB PHP Driver converts a string length to a 32-bit value without…
- Risk score
- 65/100
- CVSS
- 8.2 v3.1
- Exploit chance (30 days)
- 0.2%
- Published
- 8 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 …
- Affected
- Mongodb Php Driver
- Fix
- Apply the vendor's security update; see the linked advisory.
- Exploitation
- No known exploitation
Story map
At a glance
Mongodb Php Driver: Amber, patch this week. 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 flaws
- CVE-2026-106432: The BSON encoder in the MongoDB PHP Driver converts a string length to a 32-bit value without… (CVSS 8.2 · EPSS 0%)
- CVE-2026-106436: The BSON encoder in the MongoDB PHP Driver does not check some return values after a document… (CVSS 6.5 · EPSS 0%)
The fix
Fix: Apply the vendor's security update; see the linked advisory.
Who is exposed: Mongodb Php Driver
Where it stands
- No known exploitation
Connects to
- Same weakness: CWE-681 (CWE-681). 12 other warnings in 30 days
Why it is Amber
- CVSS 8.2 high
- Remotely exploitable without logging in
- On your watchlist: php
References
Original 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.
Last activity 8 Oct 2026. Patch Forecast updates every hour.