Skip to content
OpenAdvisories
Low · 2.3 CVE-2026-55554 EUVD-2026-50011GHSA-wvh6-f5jh-8gw4

Dompdf: Chroot Validation Bypass

Published Jul 28, 2026 · Updated Jul 29, 2026 · Assigned by GitHub_M

Description

Dompdf is an HTML to PDF converter for PHP. In versions 3.15 and prior, the validateLocalUri() method enforces chroot boundaries with a strpos() prefix check after normalizing paths with  realpath() . Because normalization strips the trailing directory separator from  $chrootPath , the check only verifies that  $chrootPath  is a string prefix of $realfile, so a chroot of  /var/www  also matches sibling directories like /var/www2 , /var/www-admin, or /var/www_backup. An attacker who controls part of the rendered HTML could exploit this to escape the chroot and read sensitive files outside the allowed directory. This issue has been fixed in version 3.16.

Affected products

VendorProductAffectedFixed
dompdf dompdf < 3.1.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 php-dompdf No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS php-dompdf No fix yet —
Ubuntu 20.04 LTS php-dompdf No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS php-dompdf No fix yet —
Ubuntu Pro 16.04 LTS php-dompdf No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist dompdf/dompdf < 3.1.6 3.1.6 GHSA-wvh6-f5jh-8gw4

References