Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-59941— Dompdf: Uncontrolled resource consumption based on declared BMP dimensions

Quick assessment

Affected
dompdf dompdf
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

dompdf是dompdf团队开源的一个 HTML 到 PDF 的转换器。 dompdf 3.16之前版本存在资源管理错误漏洞,该漏洞源于接受BMP图像时仅依据声明的头部尺寸生成PNG,未限制宽高,导致通过GD分配完整像素画布,造成内存放大,可能导致拒绝服务。

CVSS 6.3 · Medium EPSS 0.64% · P49

Affected Version Matrix 1

VendorProduct Version RangeStatus
dompdf dompdf < 3.1.6 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59941

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Dompdf: Uncontrolled resource consumption based on declared BMP dimensions
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
未加控制的资源消耗(资源穷尽)
Source: CVE Program / CVE List V5
Vulnerability Title
dompdf 资源管理错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
dompdf是dompdf团队开源的一个 HTML 到 PDF 的转换器。 dompdf 3.16之前版本存在资源管理错误漏洞,该漏洞源于接受BMP图像时仅依据声明的头部尺寸生成PNG,未限制宽高,导致通过GD分配完整像素画布,造成内存放大,可能导致拒绝服务。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
dompdf dompdf < 3.1.6 -

II. Public POCs for CVE-2026-59941

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59941

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-59941 (1)

Vendor Advisories for CVE-2026-59941 (1)

Vendor Pages for CVE-2026-59941 (1)

Same Patch Batch · dompdf · 2026-07-28 · 6 CVEs total

CVE-2026-56722 6.3 MEDIUM Dompdf: Local file read due to improper file path validation in SVG images encoded as data
CVE-2026-59942 6.3 MEDIUM Dompdf: Denial of Service (DoS) via Resource Exhaustion using Oversized Image Bitmaps
CVE-2026-59943 6.3 MEDIUM Dompdf: Embedded SVG images can leak existence of files and directories within the filesys
CVE-2026-55554 2.3 LOW Dompdf: Chroot Validation Bypass
CVE-2026-55555 2.3 LOW Dompdf: File existence oracle via font-face stylesheet declaration

IV. Related Vulnerabilities

V. Comments for CVE-2026-59941

No comments yet


Leave a comment