CVE-2026-120641
8.8 HIGHpublic exploit availablePublished 2026-11-04 · Updated 2026-11-09
AI risk analysis
- Summary
- CGI.pm versions before 5.00 for Perl pass through client-supplied filenames in upload requests without sanitizing path separators, enabling directory traversal when applications save uploads using those names directly. This allows an attacker to write files outside the intended upload directory by including sequences like ../ or Windows-style paths.
- Exploitability
- Exploitation requires low privilege (authenticated user with upload capability) and no user interaction; it is straightforward for an attacker who can control the Content-Disposition filename header in a multipart form submission.
- Blast radius
- Successful exploitation could lead to remote code execution if an attacker writes malicious files (e.g., .pl, .cgi) into web-accessible directories or overwrites critical system files, potentially compromising the entire host.
- Detection
- Defenders should monitor web server access logs for upload requests containing suspicious filename values with path traversal sequences (e.g., %2e%2e%2f, ..\, /etc/), especially when combined with non-standard file extensions or attempts to write outside expected upload paths; also inspect server-side application logs for file creation events in unexpected directories.
- Prioritized remediation
- Upgrade to CGI.pm version 5.00 or later, which sanitizes uploaded filenames by stripping directory components; if upgrading is not immediately possible, sanitize uploaded filenames server-side by extracting only the basename (e.g., using File::Basename's basename() function) before saving.
directory-traversalfile-uploadperlwebappcve-2026-120641
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 upload filenames with any client-supplied path, including ../ and Windows paths. The name returned for an uploaded file is the filename parameter of the part's Content-Disposition header, unchanged. An application that saves the upload under this name can be made to write outside the intended directory.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-22
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
- HIGHCVE-2026-92186
- HIGHCVE-2026-124467PoC
- HIGHCVE-2026-88392PoC
- HIGHCVE-2026-92192
- HIGHCVE-2026-92194
- HIGHCVE-2026-92195
- HIGHCVE-2026-93712PoC
- HIGHCVE-2026-95140PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.