Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. dompdf/dompdf
  4. ›
  5. CVE-2026-55555

CVE-2026-55555: Dompdf: File existence oracle via font-face stylesheet declaration

July 22, 2026

Dompdf is 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.

The critical point of this flaw is the discrepancy in system behavior:

  1. If the file exists: Dompdf attempts to process the local resource multiple times, leading to an “Allowed memory size exhausted” error, which crashes the creation.
  2. If the file does NOT exist: The rendering engine fails quickly or ignores the import, and the memory limit is not reached.

This discrepancy allows an attacker to enumerate sensitive files on the server, regardless of CHROOT restrictions.

Some factors impact the ability of attackers to exploit the vulnerability:

  • The attacker must be allowed to provide unrestricted and/or unsanitized HTML content.
  • System parameters must be configured in such a way that Dompdf is able to generate a memory overflow error.
  • HTTP GET querystring or POST body must allow large data
  • Memory limits must be low enough that Dompdf can trigger an overflow
  • $_dompdf_show_warnings when set to true can bump memory usage

References

  • github.com/advisories/GHSA-7x2p-4jvh-6384
  • github.com/dompdf/dompdf/commit/75c39a083bf7298044fb27399b4cc183054438b4
  • github.com/dompdf/dompdf/releases/tag/v3.1.6
  • github.com/dompdf/dompdf/security/advisories/GHSA-7x2p-4jvh-6384
  • nvd.nist.gov/vuln/detail/CVE-2026-55555

Code Behaviors & Features

Detect and mitigate CVE-2026-55555 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.6

Fixed versions

  • 3.1.6

Solution

Upgrade to version 3.1.6 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-203: Observable Discrepancy

Source file

packagist/dompdf/dompdf/CVE-2026-55555.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 16 Aug 2026 12:17:09 +0000.