CVE-2026-55554Dompdf: Chroot Validation Bypass
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.
What to do
Fixed builds are available from Packagist: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | php-dompdf | Under investigation | UBUNTU-CVE-2026-55554 | |
| Ubuntu 20.04 | php-dompdf | Fix pending | UBUNTU-CVE-2026-55554 | |
| Ubuntu 18.04 | php-dompdf | Fix pending | UBUNTU-CVE-2026-55554 | |
| Ubuntu 16.04 | php-dompdf | Fix pending | UBUNTU-CVE-2026-55554 | |
| Debian 12 | php-dompdf | Fix pending | DEBIAN-CVE-2026-55554 | |
| Packagist library | dompdf/dompdf | Fixed | 3.1.6 | GHSA-wvh6-f5jh-8gw4 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- dompdf: affected: < 3.1.6
References
- https://github.com/dompdf/dompdf/security/advisories/GHSA-wvh6-f5jh-8gw4
- https://github.com/dompdf/dompdf/releases/tag/v3.1.6
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.