Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Dompdf: Chroot Validation Bypass (CVE-2026-55554)

0
Low
Published: 07/22/2026 (07/22/2026, 21:06:48 UTC)
Source: GCVE Database
Product: dompdf/dompdf

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Packagistghsa
dompdf/dompdf
Affected versions
<3.1.6

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

AILast updated: 07/22/2026, 23:40:32 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses