File Path Disclosure in Dompdf HTML to PDF Converter for PHP
CVE-2026-56722

6.3MEDIUM

Key Information:

Vendor

DomPDF

Status
Vendor
CVE Published:
28 July 2026

What is CVE-2026-56722?

Dompdf, an HTML to PDF converter for PHP, is vulnerable to a file path disclosure issue in versions 3.15 and earlier. Attackers can exploit this vulnerability by embedding malicious SVG images within data URIs that bypass the initial security restrictions. While processing these SVG images, dompdf renders them multiple times, with the second rendering lacking the same protective measures. Furthermore, Dompdf utilizes the php-svg-lib library, which processes external references without awareness of the secure chroot directory settings. This flaw allows unauthenticated attackers to access arbitrary files from the server's filesystem, posing significant security risks. This vulnerability has been addressed in Dompdf version 3.16.

Affected Version(s)

dompdf < 3.1.6

References

CVSS V4

Score:
6.3
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.