๐Ÿ” CVE Alert

CVE-2026-59942

UNKNOWN 0.0

Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps

CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-400
Vendor dompdf
Product dompdf
Published Jul 28, 2026
Stay Ahead of the Next One

Get instant alerts for dompdf dompdf

Be the first to know when new unknown vulnerabilities affecting dompdf dompdf are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

dompdf / dompdf
< 3.1.6

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/dompdf/dompdf/security/advisories/GHSA-f5gf-2cj8-52g2 github.com: https://github.com/dompdf/dompdf/commit/7c65e7bbeccf146b2409740405af73949ad129d0 github.com: https://github.com/dompdf/dompdf/commit/89164eaabe0bb50c462f0b24f740044ba5fb0f99 github.com: https://github.com/dompdf/dompdf/releases/tag/v3.1.6