Medium severity · published Jul 28, 2026
CVE-2026-56722
Dompdf: Local file read due to improper file path validation in SVG images encoded as data-URI
5.3
CVSS
0.4%
EPSS
No
On KEV
Description
Dompdf is an HTML to PDF converter for PHP. In versions 3.15 and prior, aAn attacker who controls the HTML input can bypass this restriction by embedding a target file path inside an SVG image delivered through a  data:  URI, because dompdf processes the SVG twice and the second pass does not enforce the same protections as the first. When rendering, dompdf hands the SVG to the separate  php-svg-lib  library with external references forced on, and that library has no knowledge of the chroot directory, blocks only the  phar://  scheme, and ultimately reads the referenced file with no path or protocol validation. This lets an external, unauthenticated attacker read arbitrary image files from the server's file system in the default configuration. 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:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 39% 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-59941
Dompdf: Uncontrolled resource consumption based on declared BMP dimensions
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