CVE-2026-120646

CGI versions from 4.71 before 5.00 for Perl allow denial of service via a plain string dereferenced as a symbolic reference in uploadInfo

Published Nov 3, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
CGI versions from 4.71 before 5.00 for Perl allow denial of service via a plain string dereferenced as a symbolic reference in uploadInfo.

uploadInfo dereferences its argument and calls its filename method without checking that it is an upload filehandle. A plain string naming a defined global variable, such as the parameter value from ?upload=0, is treated as a symbolic reference, and the method call on it dies.

Analysis

AI-generated

Technical impact

An attacker can trigger a denial‑of‑service condition in CGI.pm by submitting a specially crafted upload parameter. The uploadInfo method blindly dereferences its argument and invokes the filename method without verifying that the argument is a filehandle. When a plain string, such as ?upload=0, is supplied, the string is treated as a symbolic reference to a globally defined variable. Because that variable is not an upload handle, the method call fails and causes the process to die, resulting in a service interruption. This flaw maps to CWE-843, Incorrect Type Conversion or Cast.

Affected Systems

Affected products are installations of the Perl CGI module released by LEEJO. Versions from 4.71 up to, but not including, 5.00 are vulnerable. This includes 4.71, 4.72, 4.73, etc. All systems that load CGI.pm and allow user uploads through the uploadInfo method fall under this scope, regardless of the application using it.

Risk and Exploitability

Because the vulnerability is triggered by an ordinary HTTP request with a crafted parameter, an unauthenticated remote attacker can exploit it from anywhere on the network that can reach the web server. No public exploits are currently listed, and the EPSS score is not available, so exact exploitation likelihood is unknown. Nevertheless, the CVSS score of 7.5 indicates a medium‑to‑high severity, and the potential for immediate service disruption makes the risk high. The flaw is not yet listed in the CISA KEV catalog. Administrators should assume the attack vector is a standard web request and treat the vulnerability as medium‑to‑high risk.

Remediation

Vendor Solution

Upgrade to CGI 5.00 or later.


OpenCVE Recommended Actions

  • Upgrade the CGI.pm module to version 5.00 or later, which removes the unchecked dereference in uploadInfo.
  • Validate incoming upload parameters to ensure they reference real filehandles before invoking uploadInfo, adding defensive checks such as is_a and defined.
  • Add exception handling around uploadInfo calls so that a failure does not terminate the request and instead logs an error and returns a graceful HTTP error.

Generated by OpenCVE AI on November 4, 2026 at 14:07 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': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-1287
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:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
Description CGI versions from 4.71 before 5.00 for Perl allow denial of service via a plain string dereferenced as a symbolic reference in uploadInfo. uploadInfo dereferences its argument and calls its filename method without checking that it is an upload filehandle. A plain string naming a defined global variable, such as the parameter value from ?upload=0, is treated as a symbolic reference, and the method call on it dies.
Title CGI versions from 4.71 before 5.00 for Perl allow denial of service via a plain string dereferenced as a symbolic reference in uploadInfo
Weaknesses CWE-843
References

Subscriptions

No data.

Weaknesses
  • CWE-1287

    Improper Validation of Specified Type of Input

  • CWE-843

    Access of Resource Using Incompatible Type ('Type Confusion')

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 9, 2026, 7:36 PM
Reserved
Nov 2, 2026, 5:45 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