Dompdf: File existence oracle via font-face stylesheet declaration (CVE-2026-55555)
Dompdf versions prior to 3.1.6 are vulnerable to a file existence oracle attack via the CSS @font-face directive. An attacker who can supply unsanitized HTML input referencing local files using the file:// protocol can cause Dompdf to behave differently depending on whether the file exists, leading to PHP memory exhaustion errors. This behavior allows attackers to confirm the presence of sensitive files on the server by observing if the PDF generation crashes or completes normally. Exploitation requires the ability to submit large HTML payloads and system memory limits low enough to trigger the overflow. The vulnerability enables information disclosure by revealing file existence without direct file access.
AI Analysis
Technical Summary
Dompdf before version 3.1.6 is susceptible to a file existence oracle attack through manipulation of the CSS @font-face directive referencing local files via file:// URLs. When processing malicious HTML input, Dompdf attempts to load local files repeatedly. If the file exists, Dompdf exhausts PHP memory limits and crashes; if not, it fails quickly without exhausting memory. This discrepancy allows attackers to enumerate sensitive files on the server by submitting crafted HTML payloads and analyzing the PDF generation outcome. Exploitation requires the ability to provide unsanitized HTML input and system conditions that allow memory exhaustion. This vulnerability leads to information disclosure by confirming file existence remotely.
Potential Impact
The vulnerability allows remote attackers to confirm the existence of sensitive local files on a server running vulnerable Dompdf versions by causing memory exhaustion errors when files exist and normal rendering when they do not. This information disclosure can aid attackers in mapping the server's file system and identifying sensitive files such as configuration files or keys. There is no direct code execution or file content disclosure, but the file existence oracle can facilitate further attacks.
Mitigation Recommendations
No official patch or fix is currently confirmed for this vulnerability. Users should check the vendor advisory for updates. Until a fix is available, mitigate risk by sanitizing and validating all user-supplied HTML input to prevent injection of malicious CSS referencing local files. Additionally, configure PHP memory limits and Dompdf options to reduce the likelihood of memory exhaustion errors triggered by crafted inputs. Avoid allowing unrestricted HTML input to Dompdf rendering endpoints.
Dompdf: File existence oracle via font-face stylesheet declaration (CVE-2026-55555)
Description
Dompdf versions prior to 3.1.6 are vulnerable to a file existence oracle attack via the CSS @font-face directive. An attacker who can supply unsanitized HTML input referencing local files using the file:// protocol can cause Dompdf to behave differently depending on whether the file exists, leading to PHP memory exhaustion errors. This behavior allows attackers to confirm the presence of sensitive files on the server by observing if the PDF generation crashes or completes normally. Exploitation requires the ability to submit large HTML payloads and system memory limits low enough to trigger the overflow. The vulnerability enables information disclosure by revealing file existence without direct file access.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Dompdf before version 3.1.6 is susceptible to a file existence oracle attack through manipulation of the CSS @font-face directive referencing local files via file:// URLs. When processing malicious HTML input, Dompdf attempts to load local files repeatedly. If the file exists, Dompdf exhausts PHP memory limits and crashes; if not, it fails quickly without exhausting memory. This discrepancy allows attackers to enumerate sensitive files on the server by submitting crafted HTML payloads and analyzing the PDF generation outcome. Exploitation requires the ability to provide unsanitized HTML input and system conditions that allow memory exhaustion. This vulnerability leads to information disclosure by confirming file existence remotely.
Potential Impact
The vulnerability allows remote attackers to confirm the existence of sensitive local files on a server running vulnerable Dompdf versions by causing memory exhaustion errors when files exist and normal rendering when they do not. This information disclosure can aid attackers in mapping the server's file system and identifying sensitive files such as configuration files or keys. There is no direct code execution or file content disclosure, but the file existence oracle can facilitate further attacks.
Mitigation Recommendations
No official patch or fix is currently confirmed for this vulnerability. Users should check the vendor advisory for updates. Until a fix is available, mitigate risk by sanitizing and validating all user-supplied HTML input to prevent injection of malicious CSS referencing local files. Additionally, configure PHP memory limits and Dompdf options to reduce the likelihood of memory exhaustion errors triggered by crafted inputs. Avoid allowing unrestricted HTML input to Dompdf rendering endpoints.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-7x2p-4jvh-6384
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55555"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a6150ed9c2644c7f8da2c98
Added to database: 07/22/2026, 23:23:25 UTC
Last enriched: 07/22/2026, 23:40:26 UTC
Last updated: 07/23/2026, 01:04:55 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.