CVE-2026-120639 Details
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.
A vulnerability exists in CGI versions prior to 5.00 for Perl, allowing HTTP header injection through entity decoding that occurs after a newline check in header values. This issue arises when the autoEscape feature is turned off, as header values can be manipulated to include encoded carriage return or line feed characters, which are then interpreted as actual newlines in the HTTP response. Additionally, the multipart_start and do_push methods do not properly validate header values for newlines, creating further exploitation opportunities. Applications that use these CGI features to handle request data can be tricked into injecting headers or splitting the response, potentially leading to various attacks such as cross-site scripting or cookie manipulation.
Users are advised to upgrade to CGI version 5.00 or later, where this vulnerability has been fixed. In the meantime, be cautious when handling multipart form data or using the header() function with untrusted input.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/leejo/CGI.pm/commit/69955309d371c8093d11cf12e3ddef491537ffad.patch | CPANSec | Source CodeVendor |
| https://github.com/leejo/CGI.pm/commit/7733c2753f4f240012097507cda2b6e87ae46db4.patch | CPANSec | Source CodeVendor |
| https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm | CPANSec | Source Code |
| https://metacpan.org/release/LEEJO/CGI-5.00/changes | CPANSec | AdvisoryBundleVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-113 | Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| CGI | < 5.00 |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 4, 2026 | New CVE Received | CPANSec |
Volerion