CVE-2026-59942 Details
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.
A denial-of-service vulnerability has been identified in Dompdf, an HTML to PDF converter for PHP, affecting versions through 3.15. This vulnerability allows for resource exhaustion, where an attacker can crash the PHP process by uploading a specially crafted HTML document. The document must contain a single image with extremely large dimensions, such as 30,000 by 30,000 pixels. Although Dompdf has internal checks to validate image sizes, these can be circumvented by using a high-entropy image, like random noise, encoded in Base64 and placed within certain CSS containers. The issue arises because the initial dimension validation occurs early in the process, but the subsequent resource allocation for rendering the image does not effectively limit the total CPU time or memory usage for a single object that has already passed the size check. As a result, an unauthenticated remote attacker can cause a complete denial-of-service on the web server by sending a manipulated HTML string. This vulnerability impacts any application that permits users to submit HTML content or URLs that are later converted to PDF using Dompdf.
Users can upgrade to Dompdf version 3.1.6, which addresses this vulnerability by implementing proper image size limits based on byte size.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| dompdf project dompdf | < 3.1.6 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | Initial Analysis | [email protected] |
| Jul 29, 2026 | CVE Modified | CISA-ADP |
| Jul 28, 2026 | New CVE Received | [email protected] |