← Vulnerability feed

Vulnerability record · CVE-2022-28368 · published 3 April 2022

CVE-2022-28368: Dompdf remote code execution via CSS @font-face src:url

Dompdf Project · Dompdf

Dompdf 1.2.1 permits remote code execution when an HTML input containing an @font-face CSS rule with a .php file in the src:url field is processed. Because Dompdf is a PHP library commonly used to render untrusted HTML into PDFs, any application passing user-supplied markup to it is exposed. The flaw is rated critical (CVSS 3.1 9.8) and has a very high EPSS score, indicating substantial real-world exploitation likelihood.

9.8 CVSS 3.1 Critical EPSS 82% · top 0.3% CWE-79 · Cross-site scripting
9.8CVSS 3.1 base score, v2 7.5
82%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
14References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

Dompdf 1.2.1 allows remote code execution via a .php file in the src:url field of an @font-face Cascading Style Sheets (CSS) statement (within an HTML input file).

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with network, unauthenticated, no-interaction RCE and a 99.6th percentile EPSS score make this an urgent patch target.

What it is

Dompdf 1.2.1 permits remote code execution when an HTML input containing an @font-face CSS rule with a .php file in the src:url field is processed. Because Dompdf is a PHP library commonly used to render untrusted HTML into PDFs, any application passing user-supplied markup to it is exposed. The flaw is rated critical (CVSS 3.1 9.8) and has a very high EPSS score, indicating substantial real-world exploitation likelihood.

Impact

An attacker can execute arbitrary PHP code in the context of the application server, leading to full compromise of confidentiality, integrity and availability. This can result in data theft, webshell placement or lateral movement from the hosting service.

Attack surface

Reachable over the network with no authentication and no user interaction (CVSS vector AV:N/AC:L/PR:N/UI:N). The attacker only needs to get crafted HTML containing the malicious @font-face rule into a Dompdf rendering path.

Exploitation

Not listed in CISA KEV, but EPSS is 0.82438 (99.6th percentile) and references include an Exploit-tagged Snyk advisory and a Packet Storm RCE write-up, so public exploitation techniques exist. No ransomware group usage is documented in the record.

What to do

  • Upgrade Dompdf to a version containing the fix from commit 4c70e1025bcd9b7694b95dd552499bd83cd6141d (patch references are provided; the record does not state the exact fixed version).
  • If immediate upgrade is not possible, disable or restrict remote font loading and block .php URLs in CSS src:url handling.
  • Sanitize or reject untrusted HTML/CSS before passing it to Dompdf, and avoid rendering user-controlled markup with the library.
  • Run the PHP process rendering PDFs with least privilege and restrict outbound network access to reduce post-exploitation impact.

Detection

  • Search application and web logs for requests or inputs containing @font-face with src:url pointing to .php files.
  • Monitor for unexpected PHP file creation or execution in web-accessible directories on hosts running Dompdf.
  • Alert on outbound HTTP requests from PDF-rendering services to unusual hosts, which may indicate font or payload retrieval.
  • Inventory applications and dependencies for Dompdf 1.2.1 and confirm patched versions are deployed.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-28368 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-3902Dompdf project dompdf xml external entity (xxe) vulnerabilityAn improper restriction of external entities (XXE) vulnerability in dompdf/dompdf's SVG parser allows for Server-Side Request Forgery (SSRF) and dese…EPSS 0.95%9.8CVE-2021-3838Dompdf project dompdf deserialization of untrusted data vulnerabilityDomPDF before version 2.0.0 is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the file_get_conte…EPSS 1.4%9.8CVE-2023-24813Dompdf project dompdf interpretation conflict vulnerabilityDompdf is an HTML to PDF converter written in php. Due to the difference in the attribute parser of Dompdf and php-svg-lib, an attacker can still cal…EPSS 2.5%9.8CVE-2023-23924Dompdf project dompdf incorrect authorization vulnerabilityDompdf is an HTML to PDF converter. The URI validation on dompdf 2.0.1 can be bypassed on SVG parsing by passing `<image>` tags with uppercase letter…EPSS 3.6%8.8CVE-2014-5013Dompdf project dompdf vulnerabilityDOMPDF before 0.6.2 allows remote code execution, a related issue to CVE-2014-2383.EPSS 4.5%7.5CVE-2023-50262Dompdf project dompdf improper input validation vulnerabilityDompdf is an HTML to PDF converter for PHP. When parsing SVG images Dompdf performs an initial validation to ensure that paths within the SVG are all…EPSS 1.5%7.5CVE-2022-41343Dompdf project dompdf vulnerabilityregisterFont in FontMetrics.php in Dompdf before 2.0.1 allows remote file inclusion because a URI validation failure does not halt font registration,…EPSS 6.0%6.5CVE-2014-5011Dompdf project dompdf information exposure vulnerabilityDOMPDF before 0.6.2 allows Information Disclosure.EPSS 1.5%

Source: NIST National Vulnerability Database (record CVE-2022-28368), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.