Resource Exhaustion Affecting php-dompdf package, versions *


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.5% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-PHPDOMPDF-18391827
  • published29 Jul 2026
  • disclosed28 Jul 2026

Introduced: 28 Jul 2026

NewCVE-2026-59942  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

There is no fixed version for Debian:unstable php-dompdf.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php-dompdf package and not the php-dompdf package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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 Base Scores

version 3.1