CVE-2026-59942 Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- PHPUbuntuDebian
Description
Dompdf is an HTML to PDF converter for PHP. Versions 3.15 and prior are vulnerable to a Denial of Service (DoS) attack via resource exhaustion. An attacker can crash the PHP process by providing a specially crafted HTML document containing a single image with massive dimensions (e.g., 30,000x30,000 pixels). While Dompdf implements internal checks to validate image dimensions, these can be bypassed by using a high-entropy image (such as random noise) encoded in Base64 and wrapped in specific CSS containers. The vulnerability exists because the dimension validation happens early, but the resource allocation for calculating the object's bounding box and internal buffers during the rendering phase does not strictly limit the cumulative CPU time or memory usage for a single object that has passed the initial check. An unauthenticated remote attacker can cause a complete Denial of Service on the web server by submitting a crafted HTML string. This affects any application that allows users to provide HTML content or URLs that are subsequently converted to PDF using Dompdf. This issue has been fixed in version 3.16.
Upgrade path
5 packages: 2 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/php-dompdf(Debian 12) | = 2.0.3+dfsg-1; = 2.0.3+dfsg-1+deb12u1; = 2.0.3+dfsg-2; = 2.0.3+dfsg-3 +12 more | No fix listed | No fix yet |
| ubuntu/php-dompdf(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| dompdf project dompdf | < 3.1.6 | 3.1.6 | Fixed |
| dompdf/dompdf(Packagist) | < 3.1.6; = v0.6.0; = v0.6.1; = v0.6.2 +36 more | 3.1.6 | Fixed |
| dompdf/dompdf | = < 3.1.6 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| dompdf/dompdf(Packagist) | < 3.1.6 | 3.1.6 |
| dompdf/dompdf(Packagist) | = v0.6.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.6.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.6.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.7.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.7.0-beta | No fix listed |
| dompdf/dompdf(Packagist) | = v0.7.0-beta2 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.7.0-beta3 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.3 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.4 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.5 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.6 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.0.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.0.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.0.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.1.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.1.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.2.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.2.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.2.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v2.0.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v2.0.1 | No fix listed |
Show 34 more
| Product | Affected versions | Fixed in |
|---|---|---|
| dompdf/dompdf(Packagist) | = v2.0.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v2.0.3 | No fix listed |
| dompdf/dompdf(Packagist) | = v2.0.4 | No fix listed |
| dompdf/dompdf(Packagist) | = v2.0.5 | No fix listed |
| dompdf/dompdf(Packagist) | = v2.0.7 | No fix listed |
| dompdf/dompdf(Packagist) | = v2.0.8 | No fix listed |
| dompdf/dompdf(Packagist) | = v3.0.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v3.0.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v3.0.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v3.1.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v3.1.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v3.1.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v3.1.3 | No fix listed |
| dompdf/dompdf(Packagist) | = v3.1.4 | No fix listed |
| dompdf/dompdf(Packagist) | = v3.1.5 | No fix listed |
| debian/php-dompdf(Debian:12) | All versions | No fix listed |
| dompdf/dompdf | = < 3.1.6 | No fix listed |
| debian/php-dompdf(Debian:12) | = 2.0.3+dfsg-1 | No fix listed |
| debian/php-dompdf(Debian:12) | = 2.0.3+dfsg-1+deb12u1 | No fix listed |
| debian/php-dompdf(Debian:12) | = 2.0.3+dfsg-2 | No fix listed |
| debian/php-dompdf(Debian:12) | = 2.0.3+dfsg-3 | No fix listed |
| debian/php-dompdf(Debian:12) | = 2.0.3+dfsg-4 | No fix listed |
| debian/php-dompdf(Debian:12) | = 2.0.4+dfsg-1 | No fix listed |
| debian/php-dompdf(Debian:12) | = 2.0.4+dfsg-2 | No fix listed |
| debian/php-dompdf(Debian:12) | = 2.0.7+dfsg-1 | No fix listed |
| debian/php-dompdf(Debian:12) | = 3.0.0+dfsg-1 | No fix listed |
| debian/php-dompdf(Debian:12) | = 3.0.0+dfsg-2 | No fix listed |
| debian/php-dompdf(Debian:12) | = 3.0.1+dfsg-1 | No fix listed |
| debian/php-dompdf(Debian:12) | = 3.0.2+dfsg-1 | No fix listed |
| debian/php-dompdf(Debian:12) | = 3.1.0+dfsg-1 | No fix listed |
| debian/php-dompdf(Debian:12) | = 3.1.4+dfsg-1 | No fix listed |
| debian/php-dompdf(Debian:12) | = 3.1.4+dfsg-2 | No fix listed |
| ubuntu/php-dompdf(Ubuntu:22.04) | All versions | No fix listed |
| dompdf project dompdf | < 3.1.6 | 3.1.6 |
References
- https://github.com/dompdf/dompdf/security/advisories/GHSA-f5gf-2cj8-52g2 exploit vendor-advisory
- https://github.com/dompdf/dompdf/commit/7c65e7bbeccf146b2409740405af73949ad129d0 patch
- https://github.com/dompdf/dompdf/commit/89164eaabe0bb50c462f0b24f740044ba5fb0f99 patch
- github.com product
- https://github.com/dompdf/dompdf/releases/tag/v3.1.6 release-notes
- Debian Security Tracker CVE-2026-59942 vendor-advisory
- bugs.debian.org issue-tracking
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org