CVE-2022-28368: Dompdf - Remote Code Execution
- Cve: CVE-2022-28368
- Name: Dompdf - Remote Code Execution
- 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).
- Impact: Attackers can execute arbitrary code remotely, potentially leading to full system compromise or server control.
- Remediation: Update to the latest version of Dompdf or apply security patches that address this issue.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs to craft specific CSS input with malicious src:url
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.83942
- Epss percentile: 0.997
- Assignee: [email protected]
- Published at: 2022-04-03T03:15:08Z
- Age in days: 1696
- Modified at: 2026-06-17T04:38:26Z
- Patch available: yes
- Public exploits total: 9
- References total: 8
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-28368
- Nvd status: modified
- Checked, none or zero: nuclei templates, public exploits capped, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2026-09-24 | — | no |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://snyk.io/blog/security-alert-php-pdf-library-dompdf-rce/ | nvd | 2022-04-03 |
| https://github.com/Tw0-Y/THM.git | vulncheck-xdb | 2024-10-05 |
| https://github.com/Henryisnotavailable/Dompdf-Exploit-RCE | poc-in-github | 2023-05-07 |
| https://github.com/Henryisnotavailable/Dompdf-Exploit-RCE.git | vulncheck-xdb | 2023-05-07 |
| https://github.com/That-Guy-Steve/CVE-2022-28368-handler | poc-in-github | 2023-04-28 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d | nvd | Patch, Third Party Advisory |
| https://github.com/dompdf/dompdf/issues/2598 | nvd | Patch, Third Party Advisory |
| https://github.com/dompdf/dompdf/pull/2808 | nvd | Patch, Third Party Advisory |
| https://snyk.io/blog/security-alert-php-pdf-library-dompdf-rce/ | nvd | Exploit, Third Party Advisory |
| https://github.com/snyk-labs/php-goof | nvd | Third Party Advisory |
| https://packagist.org/packages/dompdf/dompdf#v1.2.1 | nvd | Product, Third Party Advisory |
| https://socradar.io/blog/operation-master-intrusion-monetization-pipeline/ | vulncheck | Vulncheck Reported Exploitation |
| http://packetstormsecurity.com/files/171738/Dompdf-1.2.1-Remote-Code-Execution.html | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| dompdf_project:dompdf | < 1.2.1 | no | nvd | /v1/products/dompdf_project/dompdf |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| dompdf/dompdf | commit, fix, issues, package, pull | yes | /v1/repositories/dompdf/dompdf |
Index
- Repositories: 13
- Repositories high signal: 11
- Packages: 1
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2026-09-24
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 9
- Public exploit first date: 2022-04-03
- Remote: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, initial access, authentication required
- Not known: known exploited since, nuclei template, initial access since, exposed hosts