CVE-2026-55554
Beschrijving NL
Dompdf is een HTML naar PDF converter voor PHP. In versies 3.15 en eerder dwingt de validateLocalUri() -methode chrootgrenzen af met een strpos() -prefixcontrole na het normaliseren van paden met realpath() . Omdat normalisatie het achterliggende directoryscheidingsteken van $ chrootPath verwijdert, verifieert de controle alleen dat $ chrootPath een tekenreeksvoorvoegsel is van $ realfile, dus een chroot van /var/www komt ook overeen met sibling directories zoals /var/www2, /var/www-admin of /var/www_backup. Een aanvaller die een deel van de gerenderde HTML beheert, kan dit misbruiken om de chroot te ontsnappen en gevoelige bestanden buiten de toegestane map te lezen. Dit probleem is opgelost in versie 3.16.
Origineel (Engels) tonen
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.