CVE-2022-2400 External Control of File Name or Path in dompdf/dompdf
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.
| Package | Affected | Fixed in |
|---|---|---|
dompdf/dompdf Packagist | All versions | 2.0.0 |
dompdf/dompdf Packagist | All versions | 2.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.
Other vulnerabilities in dompdf/dompdf
- 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 DEBIAN-CVE-2022-2400, GHSA-5qj8-6xxj-hp9h, UBUNTU-CVE-2022-2400.