Back

LOW

Dompdf: Chroot Validation Bypass

Published Jul 28, 2026

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

Remediation

No remediation recorded yet.

Metrics

References (4)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Jul 28, 2026
Updated Jul 29, 2026
Reserved Jun 16, 2026
CISA Vulnrichment
Updated Jul 29, 2026
NVD
Status Analyzed
Modified Aug 5, 2026
Red Hat
Severity n/a
Public date n/a
GHSA-WVH6-F5JH-8GW4