# CVE-2026-120641: CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-11-03T23:40:36.961Z
- Modified: 2026-11-09T20:18:05.663Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: CPANSec

## Description

CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths.

The name returned for an uploaded file is the filename parameter of the part's Content-Disposition header, unchanged.

An application that saves the upload under this name can be made to write outside the intended directory.

(As written by CVE List.)

## Affected

- CGI: before 5.00

## References

- <https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm> (technical-description)
- <https://metacpan.org/release/LEEJO/CGI-5.00/changes> (release-notes)
- <https://github.com/leejo/CGI.pm/commit/5379eb18e87b7f985613f5c4f7bae94478a4fa2f.patch> (patch)

## Sources

- CVE List: [CVE-2026-120641](https://www.cve.org/CVERecord?id=CVE-2026-120641), CVE Terms of Use, modified 2026-11-09
- NVD: [CVE-2026-120641](https://nvd.nist.gov/vuln/detail/CVE-2026-120641), Public domain, modified 2026-11-09

---

Page: https://cve.day/CVE-2026-120641 · Whole record: https://cve.day/CVE-2026-120641.json · Rebuilt by cve.day 2026-11-25T22:59:48.945Z
