Description
Stack exhaustion vulnerability in the MongoDB PHP driver can cause application crashes when processing deeply nested BSON documents in unusual circumstances when the source of these BSON documents is not MongoDB Server.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MongoDB | PHP Driver | 1.21.5, 2.1.8 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | php-mongodb | 2.5.3-1 | — |
| Debian 13 | php-mongodb | 2.0.0-1+deb13u1 | — |
| Debian 12 | php-mongodb | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | php-mongodb | No fix yet | — |
| Ubuntu 26.04 LTS | php-mongodb | No fix yet | — |
| Ubuntu 25.10 | php-mongodb | No fix yet | — |
| Ubuntu 24.04 LTS | php-mongodb | No fix yet | — |
| Ubuntu 22.04 LTS | php-mongodb | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | php-mongodb | No fix yet | — |
| Ubuntu 18.04 LTS | php-mongodb | No fix yet | — |
| Ubuntu 16.04 LTS | php-mongodb | No fix yet | — |
Advisories 1
- WID-SEC-2026-1562 MongoDB PHP Driver: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Oct 4, 2026