← Back to search

CVE-2026-120642

9.1 CRITICALpublic exploit available

Published 2026-11-04 · Updated 2026-11-09

AI risk analysis

Summary
CGI.pm versions before 5.00 fail to apply Perl's taint flag to request-derived values such as upload filenames, cookie names, and path_info components when running under taint mode (-T), allowing attackers to inject unvalidated user input into sensitive operations like file system access or command execution. This occurs because Perl does not automatically taint values derived from regex captures or hash lookups, bypassing security checks.
Exploitability
Exploitation requires the vulnerable CGI script to use untainted request data in insecure contexts (e.g., file operations, system calls) without additional validation, and the attacker must control inputs such as upload filenames or cookie values.
Blast radius
Successful exploitation could lead to arbitrary code execution, local file disclosure, or unauthorized file manipulation depending on how the application uses the untainted data.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to CGI.pm version 5.00 or later, which properly applies taint flags to request-derived values; if upgrading is not immediately feasible, manually validate and untaint all request-derived values using explicit regex captures with captured groups before use in sensitive operations.
perltaint-bypasswebinput-validation

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Weaknesses

CWE-1173

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.