| Name | CVE-2026-106436 |
| 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. |
| Source | CVE (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 Package | Release | Version | Status |
|---|
| php-mongodb (PTS) | bookworm | 1.15.0+1.11.1+1.9.2+1.7.5-1 | vulnerable |
| trixie | 2.0.0-1 | vulnerable |
| trixie (security) | 2.0.0-1+deb13u1 | vulnerable |
| forky, sid | 2.5.3-1 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| php-mongodb | source | (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)