CVE-2026-56722 json
Dompdf: Local file read due to improper file path validation in SVG images encoded as data-URI
published 2026-07-22 3 mo ago modified 2026-08-04 3 mo ago also EUVD-2026-50026 , GHSA-cx96-42px-69fm
- cvss
- 5.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist dompdf/dompdf 3.1.6
- dompdf_project dompdf 3.1.6
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/dompdf/dompdf/security/advisories/GHSA-cx96-42px-69fm referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| CNA | 4.0 | 6.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | dompdf/dompdf | <3.1.6 |
3.1.6 |
Affected products
- dompdf dompdf
Classification
References
-
github.com
/dompdf/dompdf/commit/6a58996865db05d8fede748507e50ac4b8c5bfd0
web, patch
-
github.com
/dompdf/dompdf/commit/bf7b02f642e26007dedc5a22b3d6e15f9931120a
web, patch
-
github.com
/dompdf/dompdf/security/advisories/GHSA-cx96-42px-69fm
exploit, web, vendor-advisory
-
github.com
/dompdf/dompdf/releases/tag/v3.1.6
web, release-notes
-
github.com
/dompdf/dompdf
package
Sources
- CVE List CVE-2026-56722
- GitHub Advisory GHSA-cx96-42px-69fm
- NVD CVE-2026-56722
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.