CVEfocus › CVE database › CVE-2026-56722

CVE-2026-56722Dompdf: Local file read due to improper file path validation in SVG images encoded as…

CVSS 6.3 MediumEPSS 0.4% (higher than 31% of CVEs)Published 2026-07-28Updated 2026-07-29Assigner: GitHub_M

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.

CWE-20

What to do

Fixed builds are available from Packagist: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
4Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04php-dompdfUnder investigationUBUNTU-CVE-2026-56722
Ubuntu 20.04php-dompdfFix pendingUBUNTU-CVE-2026-56722
Ubuntu 18.04php-dompdfFix pendingUBUNTU-CVE-2026-56722
Ubuntu 16.04php-dompdfFix pendingUBUNTU-CVE-2026-56722
Debian 12php-dompdfFix pendingDEBIAN-CVE-2026-56722
Packagist librarydompdf/dompdfFixed3.1.6GHSA-cx96-42px-69fm

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.