NetSight
medium4.8

CVE-2026-106436

The BSON encoder in the MongoDB PHP Driver does not check some return values after a document exceeds libbson's size limit.

Impact

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.

Affected products

VendorProductAffected versions
MongodbPhp 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

Weakness classification

References