Improper Input Validation
CVE-2026-55554
Summary
Dompdf is an HTML to PDF converter for PHP. In versions through 3.15, `thevalidateLocalUri()` method enforces chroot boundaries with `astrpos()` 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.
- LOW
- NETWORK
- NONE
- UNCHANGED
- NONE
- NONE
- HIGH
- NONE
CWE-20 - Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
References
Advisory Timeline
- Published