← Back to search

CVE-2026-120647

9.8 CRITICALpublic exploit available

Published 2026-11-04 · Updated 2026-11-09

AI risk analysis

Summary
A parameter injection flaw in Perl's CGI module (before 5.00) allows attackers to inject additional Content-Disposition header parameters by injecting unescaped double quotes into the attachment filename. This enables manipulation of the downloaded file's name, potentially leading to misleading filenames or header parsing confusion.
Exploitability
Exploitation requires control over the $name argument passed to header(-attachment => $name), typically via unsanitized user input in web applications using the affected CGI module version.
Blast radius
Successful exploitation could enable phishing via malicious filename injection, session fixation via cookie injection into headers, or header smuggling in downstream proxies if the server does not sanitize headers.
Detection
Defenders should inspect web server access logs for Content-Disposition headers containing unescaped double quotes or multiple filename parameters (e.g., filename="x"; filename="y"). Additionally, monitor application logs for unexpected or malformed attachment filenames derived from user input.
Prioritized remediation
Upgrade to CGI.pm version 5.00 or later, which properly escapes double quotes in the Content-Disposition filename parameter.
header-injectionwebcveperlparameter-injection

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-116

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.