CVE-2026-120642

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

Published Nov 3, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

CGI for Perl versions earlier than 5.00 return request‑derived values such as filenames, cookie names, or path components without applying the taint flag, even when the Perl interpreter is running with taint mode enabled. This flaw supplies untrusted input as if it were trusted, providing a potential escape route for malicious code execution or privilege escalation. The weakness is classified as CWE-1173 and CWE-501.

Affected Systems

Affected products are Perl CGI modules released under version 4.x through 4.72 and any sub‑release of version 5.00 before the official 5.00 release that lacks the patch. The vulnerability applies to all CGI functions that capture request data via regex or hash keys, so any Perl web application using those CGI modules is potentially vulnerable, regardless of the underlying web server.

Risk and Exploitability

The CVSS score of 9.1 reflects a high‑severity condition in which untrusted input can be treated as trusted data. The EPSS score is 0.00191 (<1%), and the vulnerability is not listed in the CISA KEV catalog, so there is no public evidence of active exploitation yet. However, the flaw permits bypassing a security feature that is widely used to enforce input validation, providing a high assurance path to code execution if an application relies on taint checks. The officially documented remediation is to upgrade to CGI 5.00 or later, or apply the patch from the referenced commit. The likely attack vector is external HTTP requests containing crafted parameters that populate untainted variables.

Remediation

Vendor Solution

Upgrade to CGI 5.00 or later.


OpenCVE Recommended Actions

  • Upgrade the CGI Perl module to version 5.00 or later, which removes the taint bypass.
  • If an upgrade cannot be performed immediately, apply the patch from the referenced commit that restores taint checks for request‑derived values.
  • Ensure that any dependent Perl modules or application logic that consume CGI‑derived data handle tainted inputs correctly, adding explicit taint checks or using safe CGI functions.

Generated by OpenCVE AI on November 9, 2026 at 23:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Type Values Removed Values Added
Weaknesses CWE-501
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
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.
Title CGI versions before 5.00 for Perl return request-derived values untainted under taint mode
Weaknesses CWE-1173
References

Subscriptions

No data.

Weaknesses
  • CWE-1173

    Improper Use of Validation Framework

  • CWE-501

    Trust Boundary Violation

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 9, 2026, 7:18 PM
Reserved
Nov 2, 2026, 5:42 PM
Status
Deferred
Published
Nov 4, 2026, 12:17 AM
Modified
Nov 9, 2026, 8:18 PM
Severity
Important
Public date
Nov 3, 2026, 11:40 PM