Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted HTML with data-URI SVG to PDF render endpoint
-
DeliverySVG processed by php-svg-lib, file:// URI resolved on server
-
ExploitObserve differential PDF rendering output (broken image vs empty space)
-
ExecutionConfirm existence of target filesystem path
-
PersistIterate requests to enumerate sensitive files and directories
-
ImpactUse filesystem map to plan higher-impact attack
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error message sanitization
MITRE ATT&CK
1 technique across 1 tactic: Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the attacker can supply arbitrary HTML or SVG content that is passed without sanitization to Dompdf's rendering pipeline - specifically content containing a |
| Impact | Real-world risk is moderate and application-dependent. No CVSS score was provided by the reporter; the vulnerability is classified information disclosure (CWE-209) with no integrity or availability impact. No KEV listing exists, meaning no confirmed widespread exploitation. A working PoC is embedded in the public advisory, lowering the bar for exploitation. The critical prerequisite is attacker control over HTML or SVG content submitted to Dompdf for rendering - this is a library function, so the attack surface exists only in applications that expose Dompdf rendering to untrusted input. The practical risk is reconnaissance: an attacker who can render PDFs repeatedly can map the presence or absence of specific filesystem paths (configuration files, credential files, source directories), which could facilitate higher-impact follow-on attacks. CVSS metrics cannot be formally confirmed since no vector was provided; inferred metrics suggest AV:N/AC:L given network-reachable rendering endpoints in typical web application deployments. |
| Exploit ScenarioDerived | An attacker with access to a web application endpoint that accepts user-supplied HTML and renders it to PDF using Dompdf submits a document containing a base64-encoded data-URI SVG with an embedded |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Filesystem existence oracle in Dompdf allows attackers who can supply arbitrary HTML content for PDF rendering to enumerate files and directories on the backend server. By embedding a data-URI encoded SVG containing an <image> element with a file:// URI reference, an attacker exploits differential rendering behavior - files and directories that exist cause a different visual output than paths that do not exist - creating a binary oracle for filesystem probing. A publicly available proof-of-concept is included in the GitHub Security Advisory GHSA-j8qw-6jw8-r297; no KEV listing or confirmed active exploitation has been reported at time of analysis.
RemediationAI
Upgrade to dompdf/dompdf version 3.1.6 or later using Composer: composer update dompdf/dompdf. The patch is confirmed in commit 6a58996865db05d8fede748507e50ac4b8c5bfd0 (https://github.com/dompdf/dompdf/commit/6a58996865db05d8fede748507e50ac4b8c5bfd0) and released in the tagged version at https://github.com/dompdf/dompdf/releases/tag/v3.1.6. If upgrading is not immediately possible, the most effective compensating control is to sanitize or reject HTML/SVG input before passing it to Dompdf - specifically stripping or blocking file:// URI schemes and data:image/svg+xml data URIs containing <image> elements with external href or xlink:href attributes. Alternatively, restricting filesystem permissions for the PHP process so it cannot read sensitive paths (e.g., /etc/passwd, application configuration files) limits the reconnaissance value of the oracle, though it does not eliminate the side-channel.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dompdf is a PHP library (composer package dompdf/dompdf) that converts HTML to PDF using a rendering pipeline that includes SVG support via php-svg-lib. The vulnerable code path runs through vendor/dompdf/php-svg-lib/src/Svg/Surface/SurfaceCpdf.php, which processes SVG <image> elements and attempts to load referenced resources - including file:// URIs pointing to local filesystem paths - via file_get_contents() and getimagesize(). When an image reference resolves to an existing file, the renderer behaves differently (broken image placeholder) than when the file does not exist (empty space with normal layout), creating an observable side-channel. The root cause is CWE-209: the application exposes filesystem access feedback through differing rendering outputs. The fix in src/Helpers.php adds a guard for the data:// protocol (if (empty($protocol) || $protocol === 'data://')) to prevent data-URI embedded SVGs from having their internal image references resolved as filesystem paths.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network vector as rendering is exposed via web endpoints; PR:L because submitting content for rendering typically requires application-level access; C:L for filesystem existence oracle only.
Primary rating from Vendor (https://github.com/dompdf/dompdf).
CVSS VectorVendor: https://github.com/dompdf/dompdf
Lifecycle Timeline
1DescriptionCVE.org
Summary
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.
Details
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.
[Wed May 20 19:49:53 2026] PHP Warning: file_get_contents(file:///DOESNOTEXIST): Failed to open stream: No such file or directory in vendor/dompdf/php-svg-lib/src/Svg/Surface/SurfaceCpdf.php on line 173
[Wed May 20 19:49:53 2026] PHP Notice: getimagesize(): Error reading from /tmp/svgsk9247ela7tm3SiqGyP! in vendor/dompdf/php-svg-lib/src/Svg/Surface/SurfaceCpdf.php on line 196PoC
First, the attacker renders this HTML document:
<html>
<head>
</head>
<body>
<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiCiAgICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxpbWFnZSB4bGluazpocmVmPSJmaWxlOi8vL2V0Yy9wYXNzd2QiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj4KICAgIDwvc3ZnPgo=">
Hello World!
</body>
</html>The <img> tag contains the following SVG content:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="100%" height="100%" viewBox="0 0 100 100"
xmlns="http://www.w3.org/2000/svg">
<image xlink:href="file:///etc/passwd" x="0" y="0" width="100" height="100">
</svg>As expected, the resulting PDF contains a broken image: <img width="621" height="193" alt="image" src="https://github.com/user-attachments/assets/b615fabe-c578-4435-bcb4-e9ad0ac796d2" />
However, when supplying a path to a file or directory that does not exist, for example:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="100%" height="100%" viewBox="0 0 100 100"
xmlns="http://www.w3.org/2000/svg">
<image xlink:href="file:///DOESNOTEXIST" x="0" y="0" width="100" height="100">
</svg>The resulting PDF is rendered normally, with the image displayed as empty space (since the file did not exist). Additionally, for easier visual inspection, a rendering bug (https://github.com/dompdf/php-svg-lib/issues/142) is used to rotate the "Hello World!" text 180 degrees from the expected position:
<img width="616" height="922" alt="image" src="https://github.com/user-attachments/assets/32f83aa5-8115-4b0f-8ac2-f7b75e2eeaa9" />
Impact
By exploiting this vulnerability, an attacker is able to confirm the existence of files and directories located on the backend filesystem.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-50027
GHSA-j8qw-6jw8-r297
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB