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.
Published: 2026-07-28
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A specially crafted HTML document containing an extremely large image can cause the Dompdf engine to consume excessive CPU time and memory during rendering. The flaw lies in early dimension checks that are bypassed by high‑entropy, Base64‑encoded images wrapped in CSS, allowing the internal buffers to grow without proper limits. When these resources are exhausted, the PHP process crashes, resulting in a denial of service for the web server hosting the application.

Affected Systems

Applications built with the Dompdf library, any version 3.15 or earlier, are vulnerable. This includes web sites or services that accept user‑supplied HTML or URLs and convert them to PDF. All installations of dompdf:dompdf before 3.16 are affected.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity, and the EPSS score of less than 1% shows a very low current likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, and no public exploits have been reported. An unauthenticated remote attacker could exploit the flaw by submitting a malicious HTML payload to any exposed endpoint that feeds data to Dompdf. Because the flaw is triggered only during rendering, an attacker needs access to an interface that triggers PDF generation.

Generated by OpenCVE AI on August 3, 2026 at 14:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Dompdf to version 3.16 or later, which removes the overflow checks for oversized images.
  • If an immediate upgrade is not feasible, reject HTML that contains images with dimensions exceeding sensible limits before passing them to Dompdf.
  • When disabling user content is not possible, sanitize the HTML input to remove or replace large images and enforce a per‑image size quota in the application layer.

Generated by OpenCVE AI on August 3, 2026 at 14:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f5gf-2cj8-52g2 Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps
History

Wed, 29 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 28 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Dompdf
Dompdf dompdf
Vendors & Products Dompdf
Dompdf dompdf

Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
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.
Title Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps
Weaknesses CWE-400
References
Metrics cvssV4_0

{'score': 6.3, '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'}


Subscriptions

Dompdf Dompdf
Dompdf Project Dompdf
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-29T14:07:52.931Z

Reserved: 2026-07-07T18:20:06.128Z

Link: CVE-2026-59942

cve-icon Vulnrichment

Updated: 2026-07-29T14:07:20.379Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-28T21:17:29.143

Modified: 2026-08-04T15:54:55.953

Link: CVE-2026-59942

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T14:30:18Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption