CRITICAL9.8
GHSA-x752-qjv4-c4hc
Remote code injection in dompdf/dompdf
Quick fix
GHSA-x752-qjv4-c4hc — dompdf/dompdf: upgrade to the fixed version with the command below.
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).
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-28368[ADVISORY]
- https://github.com/dompdf/dompdf/issues/2598[WEB]
- https://github.com/dompdf/dompdf/pull/2808[WEB]
- https://github.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2022-28368.yaml[WEB]
- https://github.com/advisories/GHSA-x752-qjv4-c4hc[ADVISORY]
- https://github.com/dompdf/dompdf[PACKAGE]
- https://github.com/snyk-labs/php-goof[WEB]
- https://packagist.org/packages/dompdf/dompdf#v1.2.1[WEB]
- https://snyk.io/blog/security-alert-php-pdf-library-dompdf-rce[WEB]
- http://packetstormsecurity.com/files/171738/Dompdf-1.2.1-Remote-Code-Execution.html[WEB]