Skip to main content
VulnerabilityPublished

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

0
Compare

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

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Packagistdompdf/dompdfAffected
  • <3.1.6
Fixed in
  • 3.1.6

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

Community reviews

Loading reviews…