CVE-2022-2400 External Control of File Name or Path in dompdf/dompdf

Medium 5.3 Published Updated

An attacker can manipulate file paths to read or modify arbitrary files within the dompdf PHP library.

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-2400?

CVE-2022-2400 is a medium-severity path traversal vulnerability in dompdf/dompdf, published on 18 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

External Control of File Name or Path in GitHub repository dompdf/dompdf prior to 2.0.0.

Weakness: CWE-73

Which versions are affected by CVE-2022-2400?

2 open source packages ship an affected version, including dompdf/dompdf. It affects 1 product.

PackageAffectedFixed in
dompdf/dompdf PackagistAll versions2.0.0
dompdf/dompdf PackagistAll versions2.0.0

Products include Dompdf Project Dompdf.

How do I fix CVE-2022-2400?

Upgrade dompdf/dompdf to 2.0.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-2400 being exploited?

There is no known exploitation of CVE-2022-2400 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-2400, GHSA-5qj8-6xxj-hp9h, UBUNTU-CVE-2022-2400.

Is CVE-2022-2400 in your software?

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

Check your SBOMs for free