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.
Published: 2026-11-03
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Write
Action: Patch
AI Analysis

Impact

CGI.pm versions prior to 5.00 return the exact filename supplied by a client in a file upload request, including directory traversal characters such as "../" or Windows path separators; if an application stores the upload using this returned value, an attacker can write a file outside the intended directory, enabling arbitrary file creation or overwriting. The potential for configuration tampering or code deployment is inferred from the nature of the filesystem write but is not explicitly stated in the CVE description.

Affected Systems

Any Perl‑based web application that uses CGI.pm earlier than 5.00 to handle file uploads and stores the upload directly under the supplied filename is affected; this includes legacy scripts and custom applications that have not upgraded to newer CGI library releases and do not sanitize the filename parameter.

Risk and Exploitability

The vulnerability has a CVSS score of 7.5, EPSS score not available, and is not listed in the CISA KEV catalog. It permits direct filesystem manipulation via a straightforward network‑based file upload attack vector. Based on the CVSS score and attack vector, the risk is high for affected systems, but this assessment is inferred from the provided metrics.

Generated by OpenCVE AI on November 4, 2026 at 14:07 UTC.

Remediation

Vendor Solution

Upgrade to CGI 5.00 or later.


Vendor Workaround

For deployments that cannot upgrade, do not use the client-supplied upload filename as a path.


OpenCVE Recommended Actions

  • Upgrade CGI.pm to version 5.00 or later.
  • If an upgrade is not possible, do not use the client‑supplied upload filename as a filesystem path; instead store the file in a predetermined, safe directory and generate a server‑side filename.
  • Sanitize or strip any directory traversal or path separator characters from the filename before using it to construct a filesystem path.

Generated by OpenCVE AI on November 4, 2026 at 14:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 04 Nov 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important


Wed, 04 Nov 2026 00:00:00 +0000

Type Values Removed Values Added
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.
Title CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths
Weaknesses CWE-22
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-11-03T23:40:36.961Z

Reserved: 2026-11-02T17:42:19.176Z

Link: CVE-2026-120641

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-04T00:17:25.527

Modified: 2026-11-04T00:17:25.527

Link: CVE-2026-120641

cve-icon Redhat

Severity : Important

Publid Date: 2026-11-03T23:40:36Z

Links: CVE-2026-120641 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T14:15:15Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')