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).
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Dompdf RCE via Malicious Font Caching (CVE-2022-28368)
exploit/multi/http/dompdf_rce_cve_2022_28368
Exploit-DB 1
- Dompdf 1.2.1 - Remote Code Execution (RCE) EDB-51270 · webapps · Apr 6, 2023
GitHub 3 repositories
-
rvzsec/CVE-2022-28368 ★ 16 · Feb 13, 2023
Dompdf RCE PoC Exploit - CVE-2022-28368
-
Henryisnotavailable/Dompdf-Exploit-RCE ★ 0 · May 7, 2023
An exploit script for CVE-2022-28368 designed to make exploitation less annoying, made for a HTB machine
-
That-Guy-Steve/CVE-2022-28368-handler ★ 0 · Apr 28, 2023
This repository contains a python script that will handle the majority of the dompdf cached font exploit (CVE-2022-28368), all you need to do is create the request
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | dompdf/dompdf | < 1.2.1 | 1.2.1 | GHSA-x752-qjv4-c4hc |
References
- https://github.com/dompdf/dompdf/issues/2598
- https://snyk.io/blog/security-alert-php-pdf-library-dompdf-rce/
- https://github.com/snyk-labs/php-goof
- https://packagist.org/packages/dompdf/dompdf#v1.2.1
- https://github.com/dompdf/dompdf/pull/2808
- https://github.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d
- http://packetstormsecurity.com/files/171738/Dompdf-1.2.1-Remote-Code-Execution.html