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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-41343
- https://github.com/dompdf/dompdf/issues/2994
- https://github.com/dompdf/dompdf/pull/2995
- https://github.com/dompdf/dompdf/releases/tag/v2.0.1
- https://github.com/dompdf/dompdf/commit/66431c58017d5b1bdb9f6f772b9fbbc5e3d38dc2
- https://github.com/advisories/GHSA-6×28-7h8c-chx4