CVE-2026-120641 CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths.

High 8.8 Published Updated
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.

PackageAffectedFixed in
CGI cpan
pkg:cpan/CGI
All versions5.00
Status by vendor (4)
WhoReleaseStatusPackages
Red Hat8affectedperl-CGI
Red Hat9affectedperl-CGI
Red Hat10affectedperl-CGI
Red Hatels/7affectedperl-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.

Is CVE-2026-120641 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free