CVE-2026-120641 CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths.
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-120641?
CVE-2026-120641 is a high-severity vulnerability in CGI, published on 3 Nov 2026.
Official description
CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths.
The name returned for an uploaded file is the filename parameter of the part's Content-Disposition header, unchanged.
An application that saves the upload under this name can be made to write outside the intended directory.
Weakness: CWE-22
Which versions are affected by CVE-2026-120641?
1 open source package ship an affected version, including CGI.
| Package | Affected | Fixed in |
|---|---|---|
CGI cpanpkg:cpan/CGI | All versions | 5.00 |
Status by vendor (4)
| Who | Release | Status | Packages |
|---|---|---|---|
| Red Hat | 8 | affected | perl-CGI |
| Red Hat | 9 | affected | perl-CGI |
| Red Hat | 10 | affected | perl-CGI |
| Red Hat | els/7 | affected | perl-CGI |
How do I fix CVE-2026-120641?
Upgrade CGI to 5.00 or later.
Is CVE-2026-120641 being exploited?
There is no known exploitation of CVE-2026-120641 in the wild and no public exploit code.
Sources
Also known as AZL-112777, DEBIAN-CVE-2026-120641, DHI-irtp-fliv-7vrn-ewev, GHSA-3hqq-f8xf-6qwx, UBUNTU-CVE-2026-120641.