CVE catalog

CVE-2026-55554

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() .

[CVE catalog]

Severity
Low · CVSS 2.3
Published
Source
[NVD] · [CVE record]
EPSS
0.45% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianphp-dompdfsid3.1.4+dfsg-2vulnerable
Debianphp-dompdfbookworm2.0.3+dfsg-1+deb12u1vulnerable
Composerdompdf/dompdfNot reported3.1.6fixed
Ubuntuphp-dompdfpro0.6.2+dfsg-3vulnerable
Ubuntuphp-dompdfpro0.6.2+dfsg-3ubuntu0.18.04.1~esm1vulnerable
Ubuntuphp-dompdf20.040.6.2+dfsg-3vulnerable
Ubuntuphp-dompdf20.040.6.2+dfsg-3ubuntu0.20.04.1vulnerable
Ubuntuphp-dompdf22.040.6.2+dfsg-3.1vulnerable
Ubuntuphp-dompdf22.040.6.2+dfsg-3.1ubuntu0.1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianphp-dompdfsourcesid(unfixed)not yet assignedNot reported[1142987]
Debianphp-dompdfsourcebookworm(unfixed)not yet assignedNot reported[1142987]
Composerdompdf/dompdfcomposerNot reported3.1.6Not reportedNot reportedNot reported

[Debian bug #1142987]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [php-dompdf]Affected
    Details (2)
    • 2.0.3+dfsg-1+deb12u1 · all · bookworm

      Affected

      nvd · php-dompdf · debian · bookworm; nvd · php-dompdf · debian · 12

    • 2.0.3+dfsg-1+deb12u1 · all · bookworm

      Affected

      nvd · php-dompdf · debian · bookworm; nvd · php-dompdf · debian · 12

Observed:

References