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.
Published: 2026-07-28
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Dompdf, an HTML to PDF converter for PHP, contains a flaw in versions 3.15 and earlier where SVG rendering can reveal the presence of files and directories on the server. When an attacker supplies a data‑URI encoded SVG that contains an <image> element with a file:// reference, Dompdf misbehaves differently for non‑existent versus existing paths. This discrepancy allows the attacker to discover whether a specified file or directory exists, thereby leaking filesystem information. The weakness is a classic information‑exposure issue, rated as CWE‑209.

Affected Systems

The vulnerability affects the Dompdf library distributed as dompdf:dompdf for PHP. All releases up to and including version 3.15 are impacted; the bug is fixed in version 3.16.

Risk and Exploitability

With a CVSS score of 6.3, this issue carries a moderate severity; the EPSS score of less than 1 percent indicates a low likelihood of exploitation, and it is not listed in CISA’s KEV catalog. An attacker must be able to supply arbitrary content to Dompdf, typically via a web application that accepts user‑generated PDFs. If that content includes a malicious SVG with crafted file references, the attacker can test file names to determine existence on the server, thereby enabling further reconnaissance or credential‑guessing attacks. Because the vulnerability relies on the Dompdf library’s processing of SVG and not on privileged code execution, there is no direct remote code execution risk, but the information disclosure could aid in subsequent attacks.

Generated by OpenCVE AI on August 3, 2026 at 14:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade dompdf to 3.16 or newer.
  • Sanitize or remove any SVG content before passing it to Dompdf, ensuring that file:// references are not allowed.
  • Disable PHP’s allow_url_fopen setting or otherwise prevent file:// scheme access when rendering PDFs with Dompdf.

Generated by OpenCVE AI on August 3, 2026 at 14:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-j8qw-6jw8-r297 Dompdf: Embedded SVG images can leak existence of files and directories within the filesystem
History

Wed, 29 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 28 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Dompdf
Dompdf dompdf
Vendors & Products Dompdf
Dompdf dompdf

Tue, 28 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
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.
Title Dompdf: Embedded SVG images can leak existence of files and directories within the filesystem
Weaknesses CWE-209
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}


Subscriptions

Dompdf Dompdf
Dompdf Project Dompdf
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-29T12:37:56.940Z

Reserved: 2026-07-07T18:20:06.128Z

Link: CVE-2026-59943

cve-icon Vulnrichment

Updated: 2026-07-29T12:37:47.971Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-28T21:17:29.280

Modified: 2026-08-04T15:21:31.393

Link: CVE-2026-59943

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T14:30:18Z

Weaknesses
  • CWE-209

    Generation of Error Message Containing Sensitive Information