CVE-2022-28368 in the critical feed json
Remote code injection in dompdf/dompdf
published 2022-04-03 4 y ago modified 2026-06-17 4 mo ago also GHSA-x752-qjv4-c4hc , EUVD-2022-1865
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 83.9%
- EPSS 83.9% chance of exploitation in 30 days, percentile 99.6%
- public exploits
- 2
- Metasploit, Exploit-DB
Summary
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).
Patch / fix
- packagist dompdf/dompdf 1.2.1
- dompdf_project dompdf 1.2.1
- github.com/dompdf/dompdf@4c70e10 commit
- github.com/dompdf/dompdf#2808 pull request
- github.com/dompdf/dompdf/issues/2598 advisory
Timeline
- Published
- First public exploit (Metasploit exploit/multi/http/dompdf_rce_cve_2022_28368)
Exploit prediction
83.94% chance of exploitation in the next 30 days, higher than 99.6% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/multi/http/dompdf_rce_cve_2022_28368 Dompdf RCE via Malicious Font Caching (CVE-2022-28368) metasploit exploit, excellent rank, 2022-04-05
- EDB-51270 Dompdf 1.2.1 - Remote Code Execution (RCE) webapps, 2023-04-06
- snyk.io https://snyk.io/blog/security-alert-php-pdf-library-dompdf-rce/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | dompdf/dompdf | <1.2.1 |
1.2.1 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/dompdf/dompdf/pull/2808
web, patch, third-party-advisory
-
github.com
/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d
web, patch, third-party-advisory
-
github.com
/dompdf/dompdf/issues/2598
web, patch, third-party-advisory
-
snyk.io
/blog/security-alert-php-pdf-library-dompdf-rce/
exploit, third-party-advisory
-
github.com
/snyk-labs/php-goof
web, third-party-advisory
-
packagist.org
/packages/dompdf/dompdf#v1.2.1
web, product, third-party-advisory
-
packetstormsecurity.com
/files/171738/Dompdf-1.2.1-Remote-Code-Execution.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-28368
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2022-28368.yaml
web
-
github.com
/advisories/GHSA-x752-qjv4-c4hc
advisory
-
github.com
/dompdf/dompdf
package
-
snyk.io
/blog/security-alert-php-pdf-library-dompdf-rce
web
Sources
- CVE List CVE-2022-28368
- GitHub Advisory GHSA-x752-qjv4-c4hc
- NVD CVE-2022-28368
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.