Description
Dompdf is an HTML to PDF converter for PHP. Versions 3.15 and prior are vulnerable to a File Existence Oracle attack through the manipulation of the CSS @font-face directive. By providing malicious HTML that references local files via the file:// protocol repeatedly, an attacker can trigger PHP memory exhaustion. Because Dompdf behaves differently depending on whether a referenced local file exists (an existing file is processed repeatedly until it triggers an "Allowed memory size exhausted" crash, whereas a missing file fails fast or is ignored and never hits the memory limit), an attacker can use this observable discrepancy as an oracle to enumerate sensitive files on the server regardless of CHROOT restrictions. Exploitation requires the attacker to supply unrestricted or unsanitized HTML in a request that permits large data, plus a configuration where Dompdf's memory limit is low enough to be exhausted (with  $_dompdf_show_warnings=true  making the overflow easier to reach). This issue has been fixed in version 3.16.
Published: 2026-07-28
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Dompdf versions 3.15 and earlier are vulnerable to a file existence oracle discovered through manipulation of the CSS @font-face directive. By serving malicious HTML that repeatedly references local files via the file:// protocol, an attacker can cause PHP memory exhaustion: when a referenced file exists, Dompdf processes it repeatedly until the allowed memory is exceeded; if the file is missing, the request fails fast and does not trigger the memory limit. The observable difference allows attackers to enumerate sensitive files on the server, even when CHROOT restrictions apply. The resulting denial of service or data disclosure is the primary impact.

Affected Systems

The vulnerability affects the Dompdf HTML to PDF converter for PHP. All releases up to and including 3.15 are impacted; the issue was fixed in version 3.16 and later.

Risk and Exploitability

The CVSS score of 2.3 classifies this as a low‑severity flaw, and an EPSS score of less than 1% indicates a very low likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an application that accepts large, unsanitized HTML input for PDF rendering, a low PHP memory limit, and the ability to set the internal Dompdf warning flag to true. Attackers can launch the attack remotely by submitting crafted HTML to a vulnerable web endpoint that uses Dompdf.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Dompdf to version 3.16 or later.
  • Configure the application or the Dompdf library to strip or reject @font-face directives that use the file:// protocol, thereby preventing the file existence oracle and memory exhaustion.
  • Ensure the PHP memory_limit is set to a safe value, disable the internal Dompdf warning flag (set _dompdf_show_warnings to false), and validate or restrict the size of HTML input that is passed to Dompdf.

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

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-7x2p-4jvh-6384 Dompdf: File existence oracle via font-face stylesheet declaration
History

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

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

Tue, 28 Jul 2026 20: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 19:30:00 +0000

Type Values Removed Values Added
Description Dompdf is an HTML to PDF converter for PHP. Versions 3.15 and prior are vulnerable to a File Existence Oracle attack through the manipulation of the CSS @font-face directive. By providing malicious HTML that references local files via the file:// protocol repeatedly, an attacker can trigger PHP memory exhaustion. Because Dompdf behaves differently depending on whether a referenced local file exists (an existing file is processed repeatedly until it triggers an "Allowed memory size exhausted" crash, whereas a missing file fails fast or is ignored and never hits the memory limit), an attacker can use this observable discrepancy as an oracle to enumerate sensitive files on the server regardless of CHROOT restrictions. Exploitation requires the attacker to supply unrestricted or unsanitized HTML in a request that permits large data, plus a configuration where Dompdf's memory limit is low enough to be exhausted (with  $_dompdf_show_warnings=true  making the overflow easier to reach). This issue has been fixed in version 3.16.
Title Dompdf: File existence oracle via font-face stylesheet declaration
Weaknesses CWE-203
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/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-28T19:43:31.156Z

Reserved: 2026-06-16T23:11:20.213Z

Link: CVE-2026-55555

cve-icon Vulnrichment

Updated: 2026-07-28T19:42:43.831Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-28T20:17:26.867

Modified: 2026-08-05T16:29:57.757

Link: CVE-2026-55555

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses