What’s Vulnerable › Vulnerabilities
CVE-2022-2400: External Control of File Name or Path in dompdf/dompdf
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-07-18 · updated 2026-06-17
- Weakness: CWE-73
Description
External Control of File Name or Path in GitHub repository dompdf/dompdf prior to 2.0.0.
Affected products
- dompdf: before 2.0.0 — fixed in 2.0.0
- Packagist Dompdf/Dompdf: before 2.0.0; v0.6.0, v0.6.1, v0.6.2, v0.7.0, v0.7.0-beta, v0.7.0-beta2 (+16) — fixed in 2.0.0
How to fix
Upgrade to a fixed version: dompdf 2.0.0; Packagist Dompdf/Dompdf 2.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a
- https://huntr.dev/bounties/a6da5e5e-86be-499a-a3c3-2950f749202a
- https://lists.debian.org/debian-lts-announce/2023/07/msg00017.html
- https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a
- https://huntr.dev/bounties/a6da5e5e-86be-499a-a3c3-2950f749202a
- https://lists.debian.org/debian-lts-announce/2023/07/msg00017.html
Get alerted when CVE-2022-2400 or the next vulnerability affects your stack