CVE-2026-120642 CGI versions before 5.00 for Perl return request-derived values untainted under taint mode

Critical 9.1 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-120642?

CVE-2026-120642 is a critical vulnerability in CGI, published on 3 Nov 2026.

Official description

CGI versions before 5.00 for Perl return request-derived values untainted under taint mode.

The upload filename, uploadInfo values, some path_info and script_name values, Accept results, and the name lists from url_param and cookie are returned without the taint flag, as is a cookie named expires from 4.67 on.

These values come from regex captures or hash keys, which Perl does not taint, so they pass -T checks unvalidated.

Weakness: CWE-1173

Which versions are affected by CVE-2026-120642?

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-120642?

Upgrade CGI to 5.00 or later.

Is CVE-2026-120642 being exploited?

There is no known exploitation of CVE-2026-120642 in the wild and no public exploit code.

Sources

Also known as AZL-112771, DEBIAN-CVE-2026-120642, DHI-ztu5-5upp-w3kk-bmvy, GHSA-mqfc-h2mx-w8gc, UBUNTU-CVE-2026-120642.

Is CVE-2026-120642 in your software?

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

Check your SBOMs for free