Dompdf: Chroot Validation Bypass (CVE-2026-55554)
Dompdf versions prior to 3.1.6 contain a vulnerability in the chroot validation logic that allows bypassing local file restrictions. The vulnerability arises because the chroot check uses a prefix string comparison without enforcing a trailing directory separator, allowing access to directories with similar path prefixes outside the intended chroot. An attacker controlling rendered HTML can exploit this to access files outside the allowed directory. This vulnerability has a low severity impact and no known exploits in the wild.
AI Analysis
Technical Summary
The vulnerability in Dompdf's validateLocalUri() method stems from improper enforcement of chroot boundaries. After normalizing file paths with realpath(), the code checks if the file path starts with the chroot path using strpos(), but does not append a trailing slash to the chroot path. This allows paths in directories with names that start with the chroot path string but are outside the intended directory (e.g., /var/www2 when chroot is /var/www) to pass the check. Consequently, attacker-controlled document paths can bypass local file restrictions and access files outside the chroot. The issue affects Dompdf versions prior to 3.1.6.
Potential Impact
An attacker who can control part of the HTML rendered by Dompdf can bypass the intended chroot restrictions and access files outside the allowed directories. This may lead to unauthorized disclosure of sensitive local files. The severity is rated low, and there are no known exploits in the wild at this time.
Mitigation Recommendations
A fix is available in Dompdf version 3.1.6 or later. Users should upgrade to version 3.1.6 or newer to address this vulnerability. Until patched, carefully validate and sanitize any user-controlled input that affects file paths or document content to minimize risk.
Dompdf: Chroot Validation Bypass (CVE-2026-55554)
Description
Dompdf versions prior to 3.1.6 contain a vulnerability in the chroot validation logic that allows bypassing local file restrictions. The vulnerability arises because the chroot check uses a prefix string comparison without enforcing a trailing directory separator, allowing access to directories with similar path prefixes outside the intended chroot. An attacker controlling rendered HTML can exploit this to access files outside the allowed directory. This vulnerability has a low severity impact and no known exploits in the wild.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Dompdf's validateLocalUri() method stems from improper enforcement of chroot boundaries. After normalizing file paths with realpath(), the code checks if the file path starts with the chroot path using strpos(), but does not append a trailing slash to the chroot path. This allows paths in directories with names that start with the chroot path string but are outside the intended directory (e.g., /var/www2 when chroot is /var/www) to pass the check. Consequently, attacker-controlled document paths can bypass local file restrictions and access files outside the chroot. The issue affects Dompdf versions prior to 3.1.6.
Potential Impact
An attacker who can control part of the HTML rendered by Dompdf can bypass the intended chroot restrictions and access files outside the allowed directories. This may lead to unauthorized disclosure of sensitive local files. The severity is rated low, and there are no known exploits in the wild at this time.
Mitigation Recommendations
A fix is available in Dompdf version 3.1.6 or later. Users should upgrade to version 3.1.6 or newer to address this vulnerability. Until patched, carefully validate and sanitize any user-controlled input that affects file paths or document content to minimize risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-wvh6-f5jh-8gw4
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55554"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a6150ed9c2644c7f8da2c9e
Added to database: 07/22/2026, 23:23:25 UTC
Last enriched: 07/22/2026, 23:40:32 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.