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.
CVE-2026-59942
This medium-severity CVE scores 6.3 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.4%, top 68% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.3
- EG Score
- 6.3(medium)
- EG Risk
- 59(Attend)EG Risk 59/100SSVC: Attend
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity63% × 45%Exploitation40% × 40%Automatability100% × 15%Action: Remediate soon — notable exploitation risk. - EPSS PROB
- 0%
- EPSS %ILE
- 32%
- KEV
- Not listed
Published
July 22, 2026
Last Modified
July 30, 2026
Advisory Details (4)
Auto-updated Jul 28, 2026Dompdf 3.1.6
Patch available: dompdf/dompdf v3.1.6
https://github.com/dompdf/dompdf/releases/tag/v3.1.6commit 89164eaabe0b (dompdf/dompdf)
Patch available: dompdf/dompdf v3.1.6 (contains commit 89164eaabe0b)
https://github.com/dompdf/dompdf/commit/89164eaabe0bb50c462f0b24f740044ba5fb0f99commit 7c65e7bbeccf (dompdf/dompdf)
Patch available: dompdf/dompdf v3.1.6 (contains commit 7c65e7bbeccf)
https://github.com/dompdf/dompdf/commit/7c65e7bbeccf146b2409740405af73949ad129d0Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps · Advisory · dompdf/dompdf · GitHub
https://github.com/dompdf/dompdf/security/advisories/GHSA-f5gf-2cj8-52g2Vendor Advisories for CVE-2026-59942(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| dompdf/dompdf | v0.6.0 ... v3.1.5 (39 versions) | 3.1.6 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 10× in last 7d / 12× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-30 16:47 UTCEG score recompute
- 2026-07-30 16:28 UTCEPSS rescore
- 2026-07-30 15:48 UTCEG score recompute
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-29 15:24 UTCEG score recompute
- 2026-07-29 14:49 UTCEG score recompute
- 2026-07-28 21:26 UTCEG score recompute
- 2026-07-28 21:02 UTCEG score recompute▲ 6.30
- 2026-07-28 21:02 UTCMITRE cvelistV5CVSS v3 → 6.3 · CVSS v4 → 6.3
- 2026-07-23 03:21 UTCEG score recompute
- 2026-07-22 23:22 UTCEG score recompute
Related CVEs(same CWE)
Same CWE
10 shownCWE-400
Frequently asked(5)
What is CVE-2026-59942?
When was CVE-2026-59942 disclosed?
Is CVE-2026-59942 actively exploited?
What is the CVSS score of CVE-2026-59942?
How do I remediate CVE-2026-59942?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-59942
Is Your Infrastructure Affected by CVE-2026-59942?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.