GHSA-6x28-7h8c-chx4high7.5
Dompdf allows remote file inclusion because URI validation failure does not halt font registration
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
dompdf/dompdf Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.0.1Ecosystem versions | 2.0.1 |
Version evidence: OSV · GHSA-6x28-7h8c-chx4
View original version evidence (23 explicit versions)
Original source description
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
- Security advisory nvd.nist.gov/vuln/detail/CVE-2022-41343
- Source reference github.com/dompdf/dompdf/issues/2994
- Patch github.com/dompdf/dompdf/pull/2995
- Patch github.com/dompdf/dompdf/commit/66431c58017d5b1bdb9f6f772b9fbbc5e3d38dc2
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2022-41343.yaml
- Security advisory github.com/advisories/GHSA-6x28-7h8c-chx4
- Source reference github.com/dompdf/dompdf
- Release notes github.com/dompdf/dompdf/releases/tag/v2.0.1
- Security advisory tantosec.com/blog/cve-2022-41343