Skip to content
OpenAdvisories
Low · 2.3 CVE-2026-55555 EUVD-2026-49997GHSA-7x2p-4jvh-6384

Dompdf: File existence oracle via font-face stylesheet declaration

Published Jul 28, 2026 · Updated Jul 28, 2026 · Assigned by GitHub_M

Description

Dompdf is an HTML to PDF converter for PHP. Versions 3.15 and prior are vulnerable to a File Existence Oracle attack through the manipulation of the CSS @font-face directive. By providing malicious HTML that references local files via the file:// protocol repeatedly, an attacker can trigger PHP memory exhaustion. Because Dompdf behaves differently depending on whether a referenced local file exists (an existing file is processed repeatedly until it triggers an "Allowed memory size exhausted" crash, whereas a missing file fails fast or is ignored and never hits the memory limit), an attacker can use this observable discrepancy as an oracle to enumerate sensitive files on the server regardless of CHROOT restrictions. Exploitation requires the attacker to supply unrestricted or unsanitized HTML in a request that permits large data, plus a configuration where Dompdf's memory limit is low enough to be exhausted (with  $_dompdf_show_warnings=true  making the overflow easier to reach). This issue has been fixed in version 3.16.

Affected products

VendorProductAffectedFixed
dompdf dompdf < 3.1.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 php-dompdf No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS php-dompdf No fix yet —
Ubuntu 20.04 LTS php-dompdf No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS php-dompdf No fix yet —
Ubuntu Pro 16.04 LTS php-dompdf No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist dompdf/dompdf < 3.1.6 3.1.6 GHSA-7x2p-4jvh-6384

References