HighGHSA-6x28-7h8c-chx4CVE-2022-41343
Dompdf allows remote file inclusion because URI validation failure does not halt font registration
Published 26 Sept 2022 · Updated 16 Feb 2024
Affected package
dompdf/dompdfComposer
- Affected
- <2.0.1
- Fixed in
- 2.0.1
Update to the fixed version for your release line, for example:
composer require dompdf/dompdf:^2.0.1Details
registerFont in FontMetrics.php in Dompdf before 2.0.1 allows remote file inclusion because a URI validation failure does not halt font registration, as demonstrated by a @font-face rule.
Is GHSA-6x28-7h8c-chx4 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-41343
- Linkgithub.com/dompdf/dompdf/issues/2994
- Linkgithub.com/dompdf/dompdf/pull/2995
- Linkgithub.com/dompdf/dompdf/commit/66431c58017d5b1bdb9f6f772b9fbbc5e3d38dc2
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2022-41343.yaml
- Advisorygithub.com/advisories/GHSA-6x28-7h8c-chx4
- Packagegithub.com/dompdf/dompdf
- Linkgithub.com/dompdf/dompdf/releases/tag/v2.0.1
- Linktantosec.com/blog/cve-2022-41343
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.