CVE-2026-56722CWE-20

CVE-2026-56722

Medium · published July 29, 2026

CVSS v3.1
5.3
EPSS
0%
Percentile
37.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00448 · 37.9th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2026-07-29T01:17Z
Affected products (1)
ProductVersionsFixed in
dompdf_project/dompdf< 3.1.63.1.6
References (5)
EPSS history
Timeline
  • 28 JUL 20:17Z
    Dompdf: Local file read due to improper file path validation in SVG images encoded as data-URI
    cvelistv5