home / blog
2026-11-10 · critical
CVE-2026-120647: Header Injection in CGI for Perl
Critical header injection vulnerability in CGI for Perl. Affects versions < 5.00. Fix available. CVSS 9.8.

CVE-2026-120647 describes a header injection vulnerability in the CGI module for Perl, affecting versions before 5.00. The flaw occurs when the header() function receives an -attachment parameter with an externally controlled value (e.g., from GET/POST parameters). The library writes the filename directly into the quoted filename parameter of Content-Disposition without escaping double quotes. An attacker can inject a double quote followed by additional parameters, causing the file to be saved under a different name or adding unwanted attributes to the response header.
The CVSS score is 9.8 (critical), the maximum on the scale. The vulnerability was officially published on November 4, 2026 by the National Vulnerability Database. No confirmed public exploits are currently reported, yet the low volume of mentions on X (2 interactions) contrasts with the actual severity: the security community's signal remains weak. The official patch is already available in CGI for Perl version 5.00.
IT teams and system administrators must immediately verify which version of CGI for Perl is installed in systems exposing download or attachment functionality. If a version prior to 5.00 is in use, upgrading to the latest version is imperative. Perl applications that receive filenames from users via GET/POST parameters are high priority. Although no in-the-wild exploit is currently reported, the CVSS score suggests a high likelihood of rapid exploitation.
At a glance
- What
- Header injection in Content-Disposition. The header() function in CGI for Perl writes the filename to the filename parameter without escaping double quotes, allowing injection of additional parameters when data originates from user input via GET/POST parameters.
- Severity
- Critical (CVSS 9.8). Allows an attacker to modify the filename under which the response is saved on the client or add unwanted attributes to the Content-Disposition header.
- Affected versions
- CGI for Perl versions before 5.00
- Fix
- Update to CGI for Perl version 5.00 or later
- Status
- Vulnerability confirmed. Patch available. Published November 4, 2026. No confirmed public exploit in available data.
- Action
- Verify CGI version installed in Perl applications handling file attachments. Plan priority upgrade to version 5.00 or later.
Sources: NVD, CVE-2026-120647