CVE-2026-120642 CGI versions before 5.00 for Perl return request-derived values untainted under taint mode
- 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.
| 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-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.