CVE-2026-106436

NameCVE-2026-106436
DescriptionThe 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-mongodb (PTS)bookworm1.15.0+1.11.1+1.9.2+1.7.5-1vulnerable
trixie2.0.0-1vulnerable
trixie (security)2.0.0-1+deb13u1vulnerable
forky, sid2.5.3-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-mongodbsource(unstable)(unfixed)

Notes

https://jira.mongodb.org/browse/PHPC-2739
Fixed by: https://github.com/mongodb/mongo-php-driver/commit/79036dd7a4c946cfef2d0105f8102f26d685b260 (2.5.4, 2.1.11, 1.21.11)

Search for package or bug name: Reporting problems