Vulnerability · Published Nov 3, 2026 · Assigned by CPANSec
CVE-2026-120639CGI 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
Unrated
In plain English
A security flaw in CGI. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libcgi-pm-perl | no fix listed | DEBIAN-CVE-2026-120639 |
| Debian:13 | libcgi-pm-perl | no fix listed | DEBIAN-CVE-2026-120639 |
| Debian:14 | libcgi-pm-perl | no fix listed | DEBIAN-CVE-2026-120639 |
| Ubuntu:22.04:LTS | libcgi-pm-perl | no fix listed | UBUNTU-CVE-2026-120639 |
| Ubuntu:24.04:LTS | libcgi-pm-perl | no fix listed | UBUNTU-CVE-2026-120639 |
| Ubuntu:26.04:LTS | libcgi-pm-perl | no fix listed | UBUNTU-CVE-2026-120639 |
| Ubuntu:26.10 | libcgi-pm-perl | no fix listed | UBUNTU-CVE-2026-120639 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| CGI | 0 – before 5.00 |
Weakness: CWE-113
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