HIGH7.5
GHSA-6x28-7h8c-chx4
Dompdf allows remote file inclusion because URI validation failure does not halt font registration
Quick fix
GHSA-6x28-7h8c-chx4 — dompdf/dompdf: upgrade to the fixed version with the command below.
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-41343[ADVISORY]
- https://github.com/dompdf/dompdf/issues/2994[WEB]
- https://github.com/dompdf/dompdf/pull/2995[WEB]
- https://github.com/dompdf/dompdf/commit/66431c58017d5b1bdb9f6f772b9fbbc5e3d38dc2[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2022-41343.yaml[WEB]
- https://github.com/advisories/GHSA-6x28-7h8c-chx4[ADVISORY]
- https://github.com/dompdf/dompdf[PACKAGE]
- https://github.com/dompdf/dompdf/releases/tag/v2.0.1[WEB]
- https://tantosec.com/blog/cve-2022-41343[WEB]