{"id":"CVE-2026-59942","published":"2026-07-28T20:41:02Z","modified":"2026-07-29T14:07:52Z","title":"Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps","vendor":"dompdf","product":"dompdf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.009,"percentile":0.5765,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/dompdf/dompdf/security/advisories/GHSA-f5gf-2cj8-52g2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dompdf/dompdf/commit/7c65e7bbeccf146b2409740405af73949ad129d0","tags":["x_refsource_MISC"]},{"url":"https://github.com/dompdf/dompdf/commit/89164eaabe0bb50c462f0b24f740044ba5fb0f99","tags":["x_refsource_MISC"]},{"url":"https://github.com/dompdf/dompdf/releases/tag/v3.1.6","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":11.53},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"dompdf","affectedVersions":[{"vendor":"dompdf","product":"dompdf","versions":["< 3.1.6"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-29T14:07:38.614960Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"dompdf/dompdf","vulnerableRanges":["<3.1.6"],"patched":["3.1.6"],"from":["GHSA-f5gf-2cj8-52g2"],"provenance":"source"}],"summary":{"text":"The Dompdf HTML-to-PDF converter for PHP, in versions 3.15 and prior, contains an uncontrolled resource consumption flaw in its image handling during rendering. An unauthenticated remote attacker who can submit HTML to an application that converts it with Dompdf can craft a document, using a high-entropy Base64 image wrapped in specific CSS containers, that bypasses the early dimension checks and crashes the PHP process, causing denial of service on the web server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:21:13Z"},"euvd":{"id":"EUVD-2026-50060","exploited":false,"provenance":"source"}}