CVE-2026-106436
The BSON encoder in the MongoDB PHP Driver does not check some return values after a document…
- Risk score
- 52/100
- CVSS
- 6.5 v3.1
- Exploit chance (30 days)
- 0.3%
- 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 does not check some return values after a document exceeds libbson's size limit. This can leave the encoder in an invalid state. An unauthenticated actor who can cause an affected application to encode an unusually large data structure can terminate the PHP worker or cause th…
- 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-106436: The BSON encoder in the MongoDB PHP Driver does not check some return values after a document… (CVSS 6.5 · EPSS 0%)
- 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%)
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-252 (CWE-252). 11 other warnings in 30 days
Why it is Yellow
- CVSS 6.5 medium
- On your watchlist: php
References
Original description
The BSON encoder in the MongoDB PHP Driver does not check some return values after a document exceeds libbson's size limit. This can leave the encoder in an invalid state. An unauthenticated actor who can cause an affected application to encode an unusually large data structure can terminate the PHP worker or cause the resulting document to omit fields. No MongoDB server connection or database authentication is required.
Last activity 8 Oct 2026. Patch Forecast updates every hour.