Dompdf is an HTML to PDF converter for PHP. Versions 3.15 and prior accept a BMP image and generates a PDF-compatible PNG based only on its declared header dimensions and never bounds width × height before the image is converted through GD. A 58-byte BMP whose header declares e.g. 6000×6000 is accepted and later drives imagecreatetruecolor($width, $height) (and PHP's native BMP decoder) to allocate the full pixel canvas. A payload can fit in a single HTTP request: the BMP can be inlined as a data:image/bmp;base64,… URI inside attacker-controlled HTML, so no upload, no remote fetch, and no chroot-reachable file is required. I measured a 169-byte request driving a dompdf render to ~412 MB peak RSS and ~4.8 s of CPU/wall time, versus ~34 MB for an identically-sized benign request — roughly a 12× memory amplification per request, repeatable and unauthenticated. This issue has been fixed in version 3.16.
CVE-2026-59941
This medium-severity CVE scores 6.3 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.5%, top 60% 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
- 44(Track)EG Risk 44/100SSVC: Track
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%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 40%
- KEV
- Not listed
Published
July 22, 2026
Last Modified
July 30, 2026
Advisory Details (3)
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 7c65e7bbeccf (dompdf/dompdf)
Patch available: dompdf/dompdf v3.1.6 (contains commit 7c65e7bbeccf)
https://github.com/dompdf/dompdf/commit/7c65e7bbeccf146b2409740405af73949ad129d0Uncontrolled resource consumption based on declared BMP dimensions · Advisory · dompdf/dompdf · GitHub
https://github.com/dompdf/dompdf/security/advisories/GHSA-8hg6-c449-896mVendor Advisories for CVE-2026-59941(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 9× in last 7d / 11× 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:46 UTCEG score recompute
- 2026-07-30 16:28 UTCEPSS rescore
- 2026-07-30 13:00 UTCEG score recompute
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-29 13:19 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-59941?
When was CVE-2026-59941 disclosed?
Is CVE-2026-59941 actively exploited?
What is the CVSS score of CVE-2026-59941?
How do I remediate CVE-2026-59941?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-59941
Is Your Infrastructure Affected by CVE-2026-59941?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.