CVE-2026-120642: CGI versions before 5.00 for Perl return request-derived values untainted under taint mode
Stig Palmquist 03 Nov 2026 23:54 UTC
========================================================================
CVE-2026-120642 CPAN Security Group
========================================================================
CVE ID: CVE-2026-120642
Distribution: CGI
Versions: before 5.00
MetaCPAN: https://metacpan.org/dist/CGI
VCS Repo: https://github.com/leejo/CGI.pm
CGI versions before 5.00 for Perl return request-derived values
untainted under taint mode
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.
Problem types
-------------
- CWE-1173 Improper Use of Validation Framework
Solutions
---------
Upgrade to CGI 5.00 or later.
References
----------
https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm
https://metacpan.org/release/LEEJO/CGI-5.00/changes
https://github.com/leejo/CGI.pm/commit/6ae50ce84073b8f68a6e3750479de70d5b8f2dcf.patch