CVE-2026-56722: Dompdf · Local file read due to improper file path validation in SVG images encoded as data-URI
Affects dompdf/dompdfSource GCVE Database
Not known to be exploited · CVSS 6.3 Medium : upgrade to 3.1.6 when convenient.
Data as of 4 Dec 2026, 18:37 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 28% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.1.6
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Upgrade dompdf/dompdf to 3.1.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistdompdf/dompdf | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, restrict or sanitize user-supplied HTML input to prevent embedding of SVG images via data-URIs referencing local files. Consider disabling or restricting external references in SVG rendering if configurable. Monitor vendor channels for official patches or updates addressing this issue.
Description
A vulnerability in dompdf before version 3.1.6 allows an attacker controlling HTML input to read arbitrary local files on the server by embedding file references inside SVG images encoded as data-URIs. This bypasses the intended chroot file access restrictions due to inconsistent validation between dompdf and the php-svg-lib library used for rendering SVG content. The vulnerability is exploitable remotely without authentication in the default configuration.
References
- github.com/dompdf/dompdf/security/advisories/GHSA-cx96-42px-69fm (opens in a new tab)
- github.com/dompdf/dompdf/commit/6a58996865db05d8fede748507e50ac4b8c5bfd0 (opens in a new tab)
- github.com/dompdf/dompdf/commit/bf7b02f642e26007dedc5a22b3d6e15f9931120a (opens in a new tab)
- github.com/dompdf/dompdf (opens in a new tab)
- github.com/dompdf/dompdf/releases/tag/v3.1.6 (opens in a new tab)