CVEfocus › CVE database › CVE-2026-120641

CVE-2026-120641CGI versions before 5.00 for Perl return upload filenames with any client-supplied path,…

CVSS 8.8 HighEPSS 0.6% (higher than 42% of CVEs)Published 2026-11-03Updated 2026-11-09Assigner: CPANSec

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.

CWE-22

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
7Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libcgi-pm-perlFix pendingUBUNTU-CVE-2026-120641
Ubuntu 26.04libcgi-pm-perlUnder investigationUBUNTU-CVE-2026-120641
Ubuntu 24.04libcgi-pm-perlUnder investigationUBUNTU-CVE-2026-120641
Ubuntu 22.04libcgi-pm-perlUnder investigationUBUNTU-CVE-2026-120641
Ubuntu 20.04libcgi-pm-perlFix pendingUBUNTU-CVE-2026-120641
Ubuntu 18.04libcgi-pm-perlFix pendingUBUNTU-CVE-2026-120641
Ubuntu 16.04libcgi-pm-perlFix pendingUBUNTU-CVE-2026-120641
Debian 14libcgi-pm-perlFixed5.02-1DEBIAN-CVE-2026-120641
Debian 13libcgi-pm-perlFix pendingDEBIAN-CVE-2026-120641
Debian 12libcgi-pm-perlFix pendingDEBIAN-CVE-2026-120641
Red Hat Enterprise Linux 10perl-CGIFixed
Affected
0:4.61-5.el10_3.1RHSA-2026:99212
Red Hat Enterprise Linux 9perl-CGIFixed
Affected
0:4.51-5.el9_9.1RHSA-2026:99215
Red Hat Enterprise Linux 8perl-CGIFixed
Affected
0:4.38-3.el8_10RHSA-2026:99849
Red Hat Enterprise Linux 7perl-CGIFix pending
Affected
AlmaLinux 10perl-CGIFixed4.61-5.el10_3.1ALSA-2026:99212
AlmaLinux 9perl-CGIFixed4.51-5.el9_9.1ALSA-2026:99215
AlmaLinux 8perl-CGIFixed4.38-3.el8_10ALSA-2026:99849
Rocky Linux 10perl-CGIFixed0:4.61-5.el10_3.1RLSA-2026:99212
Rocky Linux 9perl-CGIFixed0:4.51-5.el9_9.1RLSA-2026:99215
Rocky Linux 8perl-CGIFixed0:4.38-3.el8_10RLSA-2026:99849

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to CGI 5.00 or later.

Workaround: For deployments that cannot upgrade, do not use the client-supplied upload filename as a path.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.