CVE-2022-41343 Dompdf allows remote file inclusion because URI validation failure does not halt font registration

High 7.5 Published Updated

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.

PackageAffectedFixed in
dompdf/dompdf PackagistAll versions2.0.1
dompdf/dompdf PackagistAll versions2.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.

Sources

Also known as GHSA-6x28-7h8c-chx4.

Is CVE-2022-41343 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free