# CVE-2026-120647: CGI versions before 5.00 for Perl allow Content-Disposition parameter injection via unescaped double quotes in the header attachment filename

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/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.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-11-03T23:41:05.454Z
- Modified: 2026-11-09T20:18:06.963Z
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

## Description

CGI versions before 5.00 for Perl allow Content-Disposition parameter injection via unescaped double quotes in the header attachment filename.

header(-attachment => $name) writes $name into the quoted filename parameter of Content-Disposition without escaping double quotes.

An application that passes request data as the attachment name can be made to send a second filename parameter, changing the name the response is saved under.

(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/131280a5c5bc51b65797bd57ef0ee8da8468065b.patch> (patch)

## Sources

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

---

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