Skip to main content

Dompdf EUVDEUVD-2026-50027

| CVE-2026-59943 MEDIUM
Error Message Information Leak (CWE-209)
2026-07-22 https://github.com/dompdf/dompdf GHSA-j8qw-6jw8-r297
6.3
CVSS 4.0 · Vendor: https://github.com/dompdf/dompdf
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted HTML with data-URI SVG to PDF render endpoint
  2. Delivery
    SVG processed by php-svg-lib, file:// URI resolved on server
  3. Exploit
    Observe differential PDF rendering output (broken image vs empty space)
  4. Execution
    Confirm existence of target filesystem path
  5. Persist
    Iterate requests to enumerate sensitive files and directories
  6. Impact
    Use 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 data:image/svg+xml encoded <image> element with a file:// URI in the href or xlink:href attribute. Applications that pass only developer-controlled or pre-validated templates to Dompdf are not affected. The limiting factors are: (1) the attacker must have the ability to control rendering input (authenticated or unauthenticated depending on the application), (2) the attacker must be able to observe the resulting PDF output to detect differential rendering, and (3) exploitation yields only file existence confirmation - not file contents - limiting the direct impact to reconnaissance. Default Dompdf configurations without input sanitization are vulnerable.

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 <image> element referencing file:///etc/passwd. By comparing the rendered PDF output for known existing paths versus non-existent paths, the attacker observes the differential rendering behavior and iteratively enumerates the presence of sensitive files and directories on the server filesystem. A working PoC demonstrating this exact technique is publicly available in the GitHub advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

dompdf < 3.1.6

Affected Packages

composer dompdf/dompdf fix: 3.1.6
euvd dompdf fix: 3.1.6

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

Vendor (https://github.com/dompdf/dompdf) PRIMARY 6.3 MEDIUM
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
vuln.today AI 4.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/dompdf/dompdf).

CVSS VectorVendor: https://github.com/dompdf/dompdf

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 28, 2026 - 21:22 NVD
6.3 (MEDIUM)

DescriptionCVE.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 196

PoC

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
<?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
<?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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
popular PHP PDF library, widely used in Laravel and Symfony applications
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy