High severity · published Jul 28, 2026
CVE-2026-59941
Dompdf: Uncontrolled resource consumption based on declared BMP dimensions
7.5
CVSS
0.6%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 51% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DO
dompdf · dompdf
< 3.1.6 · source: vendor, NVD
Affected product
DO
dompdf
dompdf
More from dompdf
9.8
CVE-2021-3902
Improper Restriction of XML External Entity Reference in dompdf/dompdf
9.8
CVE-2021-3838
PHAR Deserialization in dompdf/dompdf
7.5
CVE-2026-59942
Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps
7.5
CVE-2026-55554
Dompdf: Chroot Validation Bypass
7.5
CVE-2026-55555
Dompdf: File existence oracle via font-face stylesheet declaration