What’s Vulnerable › Vulnerabilities
CVE-2022-28368: Remote code injection in dompdf/dompdf
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 83.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-04-03 · updated 2026-06-17
- Weakness: CWE-79
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).
Affected products
- dompdf: before 1.2.1 — fixed in 1.2.1
- Packagist Dompdf/Dompdf: before 1.2.1; v0.6.0, v0.6.1, v0.6.2, v0.7.0, v0.7.0-beta, v0.7.0-beta2 (+14) — fixed in 1.2.1
How to fix
Upgrade to a fixed version: dompdf 1.2.1; Packagist Dompdf/Dompdf 1.2.1. Check the vendor advisory for mitigations.
References
- http://packetstormsecurity.com/files/171738/Dompdf-1.2.1-Remote-Code-Execution.html
- https://github.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d
- https://github.com/dompdf/dompdf/issues/2598
- https://github.com/dompdf/dompdf/pull/2808
- https://github.com/snyk-labs/php-goof
- https://packagist.org/packages/dompdf/dompdf#v1.2.1
- https://snyk.io/blog/security-alert-php-pdf-library-dompdf-rce/
- http://packetstormsecurity.com/files/171738/Dompdf-1.2.1-Remote-Code-Execution.html
- https://github.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d
- https://github.com/dompdf/dompdf/issues/2598
- https://github.com/dompdf/dompdf/pull/2808
- https://github.com/snyk-labs/php-goof
Get alerted when CVE-2022-28368 or the next vulnerability affects your stack