high CVSS 7.5

CVE-2026-55555·PHP vulnerability

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.

Severity
high
Software
PHP
Fixed in
3.16
Published
2026-07-28

Affected versions

Until: 3.16

Fixed in: 3.16

How to fix this CVE

Update PHP and the Dompdf library to version 3.16 or later to patch the file existence oracle vulnerability in CSS @font-face processing. If you use Dompdf for HTML-to-PDF conversion, ensure all user-supplied HTML input is strictly validated and sanitized before processing. Additionally, review your PHP memory_limit configuration and disable $_dompdf_show_warnings in production environments to reduce attack surface.

sudo dnf update php php-common

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST/GET requests containing malicious HTML with repeated <link rel="stylesheet"> or @font-face CSS rules referencing file:// protocol URIs (e.g., file:///etc/passwd) followed by PHP memory exhaustion errors in logs within a short time window

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Implement a WAF rule to block HTTP requests with Content-Type: text/html or application/x-www-form-urlencoded that contain multiple instances of 'file://' protocol references or suspicious @font-face directives in POST/GET parameters sent to PDF generation endpoints.

How to check if you are affected

  1. Step 1: Check the installed PHP version by running: php -v
  2. Step 2: Verify if Dompdf is installed by checking composer.lock or vendor directory: grep -r '"name": "dompdf/dompdf"' composer.lock
  3. Step 3: Search PHP error logs for repeated 'Allowed memory size exhausted' messages followed by file:// protocol references: grep -i 'allowed memory\|file://' /var/log/php-fpm.log /var/log/apache2/error.log
  4. Step 4: After patching, confirm Dompdf version 3.16+ is installed: composer show dompdf/dompdf | grep Version

Indicators of compromise

  • HTTP POST requests to PDF generation endpoints with file:// URLs in HTML payload
  • Multiple repeated 'Allowed memory size exhausted' errors in PHP error logs
  • CSS @font-face directives with file:// protocol in uploaded or submitted HTML

FAQ

What is CVE-2026-55555?

CVE-2026-55555 is a file existence oracle vulnerability in Dompdf versions 3.15 and earlier that allows attackers to enumerate sensitive server files by exploiting differences in how the library processes existing vs. missing files referenced in CSS @font-face directives, leading to memory exhaustion.

Is CVE-2026-55555 being actively exploited?

No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and has no publicly available exploits at this time.

What versions of PHP are affected by CVE-2026-55555?

PHP installations using Dompdf versions 3.15 and earlier are affected; the vulnerability is patched in Dompdf 3.16 and later.

How do I check if my server is vulnerable to CVE-2026-55555?

Run 'composer show dompdf/dompdf | grep Version' to check the installed Dompdf version; if it is 3.15 or lower, your server is vulnerable.

Does Defensia detect CVE-2026-55555?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP and Dompdf are installed on a monitored server, CVE-2026-55555 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-55555. Free for 1 server.

Get started free