# CVE-2026-59942: Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-22T22:51:40.000Z
- Modified: 2026-08-04T15:54:55.953Z
- Also known as: GHSA-f5gf-2cj8-52g2
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dompdf dompdf: < 3.1.6
- dompdf/dompdf (Packagist): before 3.1.6
- dompdf_project dompdf: before 3.1.6

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/dompdf/dompdf/security/advisories/GHSA-f5gf-2cj8-52g2> (exploit, vendor-advisory, web)
- <https://github.com/dompdf/dompdf/commit/7c65e7bbeccf146b2409740405af73949ad129d0> (patch, web)
- <https://github.com/dompdf/dompdf/commit/89164eaabe0bb50c462f0b24f740044ba5fb0f99> (patch, web)
- <https://github.com/dompdf/dompdf/releases/tag/v3.1.6> (release-notes, web)
- <https://github.com/dompdf/dompdf> (package)

## Sources

- CVE List: [CVE-2026-59942](https://www.cve.org/CVERecord?id=CVE-2026-59942), CVE Terms of Use, modified 2026-07-29
- GitHub Advisory Database: [GHSA-f5gf-2cj8-52g2](https://github.com/advisories/GHSA-f5gf-2cj8-52g2), CC-BY-4.0, modified 2026-07-22
- NVD: [CVE-2026-59942](https://nvd.nist.gov/vuln/detail/CVE-2026-59942), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2026-59942 · Whole record: https://cve.day/CVE-2026-59942.json · Rebuilt by cve.day 2026-11-25T22:59:30.383Z
