High severity7.5NVD Advisory· Published Jul 28, 2026· Updated Aug 5, 2026
CVE-2026-55554
CVE-2026-55554
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
dompdf/dompdfPackagist | < 3.1.6 | 3.1.6 |
Affected products
3- Range: <=3.15
Patches
Vulnerability mechanics
References
4- github.com/dompdf/dompdf/security/advisories/GHSA-wvh6-f5jh-8gw4nvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-wvh6-f5jh-8gw4ghsaADVISORY
- github.com/dompdf/dompdf/commit/1b3b61ec4f6962678e56ee8a42920b4f835ab006ghsaWEB
- github.com/dompdf/dompdf/releases/tag/v3.1.6nvdRelease NotesWEB
News mentions
1- Dompdf: Four Vulnerabilities Disclosed Together Affecting Versions 3.15 and PriorVypr Intelligence · Jul 29, 2026