CVE-2026-55554: Dompdf Chroot Validation Bypass Vulnerability

dompdf/dompdf Updated 23 Jul 2026

Summary

22/07/2026
Yes i
Low
2.3

CVE-2026-55554: Dompdf: Chroot Validation Bypass. Affects dompdf/dompdf versions < 3.1.6. Fixed in 3.1.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Dompdf is a popular open-source PHP library that enables the generation of PDF documents from HTML content. It is widely used in web applications to create dynamic PDF files. The library provides features such as CSS styling, image embedding, and font management. However, a vulnerability has been identified in its chroot validation mechanism, which could allow unauthorized access to files outside the intended directory structure.

Vulnerability Detail

The vulnerability arises from the validateLocalUri() method, which is responsible for checking if a local file is within an allowed chroot directory. The method uses a string prefix check with strpos() after normalizing the file path with realpath(). Due to the absence of a terminating directory separator in the chroot path, this check can be bypassed. An attacker can exploit this flaw by crafting a document path that appears to be within the allowed chroot but actually points to a different directory. This could lead to unauthorized access to sensitive files, posing a significant security risk.

How To Fix

Minimum fixed version

3.1.6

This is the first release that contains the fix.

composer require dompdf/dompdf:3.1.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can implement additional checks in your code to validate file paths before passing them to Dompdf. For example, ensure that the file paths do not contain any unexpected directory traversal sequences or validate the paths against a whitelist of allowed directories.

Conclusion

The Dompdf chroot validation bypass vulnerability (CVE-2026-55554) poses a risk of unauthorized file access. It is crucial for users of the Dompdf library to update to version 3.1.6 or later to mitigate this risk. Implementing additional validation checks can also help protect against potential exploitation until the package is updated.

See every vulnerability recorded for dompdf/dompdf →

Share this vulnerability

FAQ

An attacker could bypass chroot restrictions and access sensitive files outside the allowed directories, potentially leading to data exposure.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

The CVSS score of this vulnerability is 2.3, indicating a low severity level.

Yes, a patch is available in version 3.1.6 of the Dompdf package. Updating to this version will resolve the issue.

If immediate updates are not possible, consider implementing additional file path validation in your application as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for dompdf/dompdf.

How To Fix

Minimum fixed version

3.1.6

This is the first release that contains the fix.

composer require dompdf/dompdf:3.1.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback