CVE-2026-120642
Taint validation bypass in CGI for Perl
Critical 9.1 No auth needed
Follow: this CVE We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Nov 4, 2026
- Updated
- Nov 9, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1173
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
CGI for Perl versions before 5.00 return request-derived values without the taint flag under taint mode, allowing unvalidated data to bypass security checks. Upload filenames, uploadInfo values, path_info, script_name, Accept results, and parameter/cookie name lists are returned untainted, enabling attackers to circumvent validation controls.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 5.00
Update CGI to version 5.00 or later to restore proper taint marking on all request-derived values.
- Check whether you run any of the affected products and follow the vendor advisory.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Official advisories
- Red Hat Security Advisory: perl-CGI security update · Red Hat · RHSA-2026:99849 · Nov 13, 2026 High
- Red Hat Security Advisory: perl-CGI security update · Red Hat · RHSA-2026:99213 · Nov 13, 2026 High
- Red Hat Security Advisory: perl-CGI security update · Red Hat · RHSA-2026:99214 · Nov 13, 2026 High
- perl-CGI-5.20.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12465-1 · Nov 6, 2026 Critical
Also: Red Hat (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.