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
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-56722
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-56722
Patch
https://github.com/dompdf/dompdf/commit/6a58996865db05d8fede748507e50ac4b8c5bfd0
Patch
https://github.com/dompdf/dompdf/commit/bf7b02f642e26007dedc5a22b3d6e15f9931120a
Release Notes
https://github.com/dompdf/dompdf/releases/tag/v3.1.6
Exploit
https://github.com/dompdf/dompdf/security/advisories/GHSA-cx96-42px-69fm
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
