
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-59943 is an information disclosure vulnerability in Dompdf titled "Embedded SVG images can leak existence of files and directories within the filesystem." It affects all versions of the dompdf/dompdf Composer package prior to 3.1.6 (i.e., ≤ 3.1.5). The vulnerability was published by maintainer bsweeney on July 20, 2026, and added to the GitHub Advisory Database on July 22, 2026. It carries a CVSS v4.0 base score of 6.3 (Medium) (GitHub Advisory, Dompdf Advisory).
The root cause is classified as CWE-209 (Generation of Error Message Containing Sensitive Information). When Dompdf processes an HTML document containing a data-URI encoded SVG with an <image> element whose href or xlink:href attribute references a local filesystem path (e.g., file:///somepath), the library behaves differently depending on whether the referenced path exists: a non-existent path triggers a PHP Warning and Notice in SurfaceCpdf.php, while an existing path causes the image to render as empty space without errors. This behavioral difference is observable in the rendered PDF output, enabling an oracle-style enumeration of filesystem paths. The fix, applied in commit 6a58996, corrects the build_url() function in src/Helpers.php to treat data:// protocol contexts as file://, preventing improper local URL resolution from within data-URI SVG documents (Dompdf Advisory, Fix Commit).
Successful exploitation allows an unauthenticated remote attacker to confirm the existence or non-existence of arbitrary files and directories on the backend server's filesystem, constituting a filesystem oracle. There is no direct integrity or availability impact, and the vulnerability does not enable direct file content reading; however, the disclosed path information can facilitate reconnaissance for chained attacks, such as identifying configuration files, credentials, or application structure to support further exploitation (GitHub Advisory).
<image> element with an href or xlink:href attribute pointing to a target filesystem path (e.g., file:///etc/passwd for a known path, or file:///DOESNOTEXIST for a non-existent path).<img> tag in an HTML document: <img src="data:image/svg+xml;base64,<BASE64_SVG>"/>./etc/, /var/www/html/config.php, /home/) to systematically map the server's filesystem structure (Dompdf Advisory).PHP Warning: file_get_contents(file:///...): Failed to open stream: No such file or directory in vendor/dompdf/php-svg-lib/src/Svg/Surface/SurfaceCpdf.php on line 173 or PHP Notice: getimagesize(): Error reading from /tmp/svg... — repeated occurrences with varying file paths suggest active enumeration.data:image/svg+xml;base64, payloads in HTML input fields, especially with systematically varying file:// URI paths in the decoded SVG content./tmp/svgsk*.svg) created in rapid succession, which may indicate automated enumeration attempts (Dompdf Advisory).Upgrade dompdf/dompdf to version 3.1.6 or later, which corrects the URL resolution logic for data-URI SVG documents. As a workaround where upgrading is not immediately possible, restrict or sanitize user-supplied HTML content before passing it to Dompdf, preventing untrusted input from reaching the SVG rendering pipeline. The Dompdf project also recommends reviewing the Securing Dompdf wiki for additional hardening guidance (Dompdf Release, Fix Commit).
The vulnerability was reported by security researcher w4tchd0ge and patched by Dompdf maintainer bsweeney as part of a broader v3.1.6 release that addressed six moderate-severity vulnerabilities simultaneously. Tenable has published a cloud security plugin (ID 445185) covering this CVE. No significant broader media coverage or notable social media discussion has been identified beyond the advisory and automated threat intelligence aggregation (Dompdf Release, GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."