# CVE-2026-120639: CGI versions before 5.00 for Perl allow HTTP header injection via entity decoding after the newline check in header and unchecked values in multipart_start and do_push

- Severity: High 7.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/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): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-11-03T23:40:30.552Z
- Modified: 2026-11-09T20:18:05.173Z
- Weaknesses: CWE-113
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

CGI versions before 5.00 for Perl allow HTTP header injection via entity decoding after the newline check in header and unchecked values in multipart_start and do_push.

With autoEscape off, header decodes HTML entities in extra header values after its newline check, so an encoded CR or LF reaches the response. multipart_start does not check header values for newlines, and do_push does not check the type it prints in each part.

An application that passes request data into these header values can be made to add headers or split the response.

(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/69955309d371c8093d11cf12e3ddef491537ffad.patch> (patch)
- <https://github.com/leejo/CGI.pm/commit/7733c2753f4f240012097507cda2b6e87ae46db4.patch> (patch)

## Sources

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

---

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