CVE catalog

CVE-2026-59942

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 spe

[CVE catalog]

Severity
Medium · CVSS 6.3
Published
Source
[NVD] · [CVE record]
EPSS
0.90% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianphp-dompdfsid3.1.4+dfsg-2vulnerable
Debianphp-dompdfbookworm2.0.3+dfsg-1+deb12u1vulnerable
Composerdompdf/dompdfNot reported3.1.6fixed
Ubuntuphp-dompdfpro0.6.2+dfsg-3vulnerable
Ubuntuphp-dompdfpro0.6.2+dfsg-3ubuntu0.18.04.1~esm1vulnerable
Ubuntuphp-dompdf20.040.6.2+dfsg-3vulnerable
Ubuntuphp-dompdf20.040.6.2+dfsg-3ubuntu0.20.04.1vulnerable
Ubuntuphp-dompdf22.040.6.2+dfsg-3.1vulnerable
Ubuntuphp-dompdf22.040.6.2+dfsg-3.1ubuntu0.1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianphp-dompdfsourcesid(unfixed)not yet assignedNot reported[1142987]
Debianphp-dompdfsourcebookworm(unfixed)not yet assignedNot reported[1142987]
Composerdompdf/dompdfcomposerNot reported3.1.6Not reportedNot reportedNot reported

[Debian bug #1142987]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [php-dompdf]Affected
    Details (2)
    • 2.0.3+dfsg-1+deb12u1 · all · bookworm

      Affected

      nvd · php-dompdf · debian · bookworm; nvd · php-dompdf · debian · 12

    • 2.0.3+dfsg-1+deb12u1 · all · bookworm

      Affected

      nvd · php-dompdf · debian · bookworm; nvd · php-dompdf · debian · 12

Observed:

References