CVE-2022-41343 Dompdf allows remote file inclusion because URI validation failure does not halt font registration
Remote attackers can exploit a URI validation failure in Dompdf to include arbitrary files, potentially leading to code execution or data disclosure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-41343?
CVE-2022-41343 is a high-severity path traversal vulnerability in n/a, published on 25 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-552
Which versions are affected by CVE-2022-41343?
2 open source packages ship an affected version, including dompdf/dompdf. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
dompdf/dompdf Packagist | All versions | 2.0.1 |
dompdf/dompdf Packagist | All versions | 2.0.1 |
Products include Dompdf Project Dompdf.
How do I fix CVE-2022-41343?
Upgrade dompdf/dompdf to 2.0.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-41343 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-41343 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
- CVE-2023-24813 URI validation failure on SVG parsing. Bypass of CVE-2023-23924
- CVE-2023-23924 URI validation failure on SVG parsing in Dompdf
- CVE-2021-3838 PHAR Deserialization in dompdf/dompdf
- CVE-2021-3902 Improper Restriction of XML External Entity Reference in dompdf/dompdf
- CVE-2022-28368 Remote code injection in dompdf/dompdf
Sources
Also known as GHSA-6x28-7h8c-chx4.