Skip to main content
← All vulnerabilities
CVE-2026-55554GHSA-WVH6-F5JH-8GW4

Dompdf: Chroot Validation Bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • dompdf dompdf

    fixed in 3.1.6

  • dompdf/dompdfPackagist

    fixed in 3.1.6

References 2

GitHub · dompdf/dompdf