High severity · published Jul 28, 2026
CVE-2026-59942
Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps
7.5
CVSS
0.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 60% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DO
dompdf · dompdf
< 3.1.6 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-59942
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-59942
Patch
https://github.com/dompdf/dompdf/commit/7c65e7bbeccf146b2409740405af73949ad129d0
Patch
https://github.com/dompdf/dompdf/commit/89164eaabe0bb50c462f0b24f740044ba5fb0f99
Release Notes
https://github.com/dompdf/dompdf/releases/tag/v3.1.6
Exploit
https://github.com/dompdf/dompdf/security/advisories/GHSA-f5gf-2cj8-52g2
More from dompdf
9.8
CVE-2021-3902
Improper Restriction of XML External Entity Reference in dompdf/dompdf
9.8
CVE-2021-3838
PHAR Deserialization in dompdf/dompdf
7.5
CVE-2026-59941
Dompdf: Uncontrolled resource consumption based on declared BMP dimensions
7.5
CVE-2026-55554
Dompdf: Chroot Validation Bypass
7.5
CVE-2026-55555
Dompdf: File existence oracle via font-face stylesheet declaration
