CVE-2026-59942
Last modified
CVE-2026-59942 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.40% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Dompdf Project | Dompdf | < 3.1.6 |
References
- https://github.com/dompdf/dompdf/releases/tag/v3.1.6Release Notes
- https://github.com/dompdf/dompdf/security/advisories/GHSA-f5gf-2cj8-52g2Exploit, Vendor Advisory
- https://github.com/dompdf/dompdf/security/advisories/GHSA-f5gf-2cj8-52g2Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-59942?
How severe is CVE-2026-59942?
How do I fix CVE-2026-59942?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59936pypdf is a free and open-source pure-python PDF library. Pri…7.5
- CVE-2026-59937pypdf is a free and open-source pure-python PDF library. Pri…7.5
- CVE-2026-59938pypdf is a free and open-source pure-python PDF library. Pri…5.3
- CVE-2026-59939httplib2 is a comprehensive HTTP client library for Python. …7.5
- CVE-2026-5994A security flaw has been discovered in Totolink A7100RU 7.4c…9.8
- CVE-2026-59941Dompdf is an HTML to PDF converter for PHP. Versions 3.15 an…7.5
- CVE-2026-59943Dompdf is an HTML to PDF converter for PHP. In versions 3.15…5.3
- CVE-2026-59946Composer is a dependency Manager for the PHP language. Prior…6.1
- CVE-2026-59947Composer is a dependency Manager for the PHP language. Prior…4.7
- CVE-2026-59948Composer is a dependency Manager for the PHP language. Prior…7
- CVE-2026-5995A weakness has been identified in Totolink A7100RU 7.4cu.231…9.8
- CVE-2026-59950The MCP Python SDK, called mcp on PyPI, is a Python implemen…8.1
Are you affected by CVE-2026-59942?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
