Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-59943 EUVD-2026-50027GHSA-j8qw-6jw8-r297

Dompdf: Embedded SVG images can leak existence of files and directories within the filesystem

Published Jul 28, 2026 · Updated Jul 29, 2026 · Assigned by GitHub_M

Description

Dompdf is an HTML to PDF converter for PHP. In versions 3.15 and prior, if a malicious actor can supply unrestricted content for rendering by Dompdf they can utilize the SVG rendering functionality to leak filesystem information when rendering PDF files using image references within a data-URI encoded SVG document. Using an <image> element inside a data-URI embedded SVG, an attacker can attempt to embed other files via the href or xlink:href attributes. When processing a file that does not exist (e.g. file:///DOESNOTEXIST), dompdf behaves differently than it does when accessing a file or directory that actually exists on the filesystem. This issue has been fixed in version 3.16.

Affected products

VendorProductAffectedFixed
dompdf dompdf < 3.1.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 php-dompdf No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS php-dompdf No fix yet —
Ubuntu 20.04 LTS php-dompdf No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS php-dompdf No fix yet —
Ubuntu Pro 16.04 LTS php-dompdf No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist dompdf/dompdf < 3.1.6 3.1.6 GHSA-j8qw-6jw8-r297

Advisories 2

References