CVE-2026-106436: MongoDB PHP Driver
Medium severity, CVSS 6.5. EPSS: 0.4% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- MongoDB PHP Driver, from 1.3.0, before 1.21.1: fixed in 1.21.1
- MongoDB PHP Driver, from 2.0.0, before 2.1.11: fixed in 2.1.11
- MongoDB PHP Driver, from 2.2.0, before 2.5.4: fixed in 2.5.4
Affected products
- MongoDB PHP Driver: from 1.3.0, before 1.21.1 (fixed in 1.21.1); from 2.0.0, before 2.1.11 (fixed in 2.1.11); from 2.2.0, before 2.5.4 (fixed in 2.5.4)
Published 2026-10-08. Last modified 2026-10-13.