CVE-2026-59942
published medium CVSS 4.0 · 6.3Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| dompdf | — | dompdf< 3.1.6 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| dompdf | dompdf | < 3.1.6 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-400 CWE-400: Uncontrolled Resource Consumption
References
4Provider assertions
2GitHub_M · cna
Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c9a01830bb5662766eaa186fc59739d8d4f974817d9ae0ec75f3a2d5fc7cde95
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record