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

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-07-18T00:00:00.000Z
- Modified: 2026-06-17T04:41:49.560Z
- Also known as: GHSA-5qj8-6xxj-hp9h
- Weaknesses: CWE-73
- Assigned by: @huntrdev

## Description

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

(As written by CVE List.)

## Affected

- dompdf dompdf/dompdf: from unspecified before 2.0.0
- dompdf/dompdf (Packagist): before 2.0.0
- dompdf_project dompdf: before 2.0.0

## Every score

- @huntrdev: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://huntr.dev/bounties/a6da5e5e-86be-499a-a3c3-2950f749202a> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a> (patch, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00017.html> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-2400> (advisory)
- <https://github.com/dompdf/dompdf> (package)

## Sources

- CVE List: [CVE-2022-2400](https://www.cve.org/CVERecord?id=CVE-2022-2400), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5qj8-6xxj-hp9h](https://github.com/advisories/GHSA-5qj8-6xxj-hp9h), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-2400](https://nvd.nist.gov/vuln/detail/CVE-2022-2400), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-2400 · Whole record: https://cve.day/CVE-2022-2400.json · Rebuilt by cve.day 2026-11-25T22:58:13.011Z
