CriticalGHSA-x752-qjv4-c4hcCVE-2022-28368
Remote code injection in dompdf/dompdf
Published 4 Apr 2022 · Updated 16 Feb 2024
Affected package
dompdf/dompdfComposer
- Affected
- <1.2.1
- Fixed in
- 1.2.1
Update to the fixed version for your release line, for example:
composer require dompdf/dompdf:^1.2.1Details
Dompdf is an HTML to PDF converter. Dompdf before 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).
Is GHSA-x752-qjv4-c4hc in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected dompdf/dompdf, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-28368
- Linkgithub.com/dompdf/dompdf/issues/2598
- Linkgithub.com/dompdf/dompdf/pull/2808
- Linkgithub.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2022-28368.yaml
- Advisorygithub.com/advisories/GHSA-x752-qjv4-c4hc
- Packagegithub.com/dompdf/dompdf
- Linkgithub.com/snyk-labs/php-goof
- Linkpackagist.org/packages/dompdf/dompdf#v1.2.1
- Linksnyk.io/blog/security-alert-php-pdf-library-dompdf-rce
- Linkpacketstormsecurity.com/files/171738/Dompdf-1.2.1-Remote-Code-Execution.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.