CVE-2026-120637

CGI versions before 5.00 for Perl take request parameters from the process command line arguments for an unrecognised REQUEST_METHOD

Published Nov 3, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
CGI versions before 5.00 for Perl take request parameters from the process command line arguments for an unrecognised REQUEST_METHOD.

For a REQUEST_METHOD such as OPTIONS, CGI falls through to its offline debugging mode, which is on by default, and builds the parameters and path_info from the process's command line arguments.

Analysis

AI-generated

Technical impact

CGI modules older than 5.00 for Perl incorrectly process request parameters when an unrecognized HTTP method is supplied. In such cases, the module falls back to its offline debugging mode, which is enabled by default. The fallback uses the process’s command line arguments to build parameters and path information, meaning an attacker can supply arbitrary arguments that will be interpreted as part of the CGI script’s execution context. The possibility that these arguments could trigger execution of arbitrary commands is inferred from the described behavior but is not explicitly stated in the description. This weakness is documented as CWE‑489 and can lead to unexpected behavior or potential command execution depending on the script’s design.

Affected Systems

Perl web applications that use the CGI.pm module version 4.x or earlier from the LEEJO/CGI CPAN package are affected on any platform that runs them. Any environment where those modules are loaded, including legacy sites with CGI scripts, is at risk, especially if the modules are not upgraded to version 5.00 or later.

Risk and Exploitability

Because exploiting the flaw requires an unrecognized HTTP method such as OPTIONS and depends on the CGI module’s offline debugging mode being enabled, the attack surface is narrow. The EPSS score of < 1% indicates a very low but non‑zero likelihood of exploitation. The vulnerability is not listed in CISA KEV, suggesting a lower likelihood of widespread exploitation. Nevertheless, the potential to inject arbitrary command line arguments represents a significant risk, warranting timely remediation. The CVSS score of 9.8 indicates high severity.

Remediation

Vendor Solution

Upgrade to CGI 5.00 or later.


OpenCVE Recommended Actions

  • Apply the official vendor patch by upgrading the CGI.pm module to version 5.00 or later.
  • Disable the offline debugging mode in the CGI configuration so that the module does not process command line arguments.
  • Configure the web server or application to reject non‑standard HTTP methods, such as OPTIONS, to prevent triggering of the debugging fallback.

Generated by OpenCVE AI on November 9, 2026 at 23:22 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': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

cvssV3_1

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

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Description CGI versions before 5.00 for Perl take request parameters from the process command line arguments for an unrecognised REQUEST_METHOD. For a REQUEST_METHOD such as OPTIONS, CGI falls through to its offline debugging mode, which is on by default, and builds the parameters and path_info from the process's command line arguments.
Title CGI versions before 5.00 for Perl take request parameters from the process command line arguments for an unrecognised REQUEST_METHOD
Weaknesses CWE-489
References

Subscriptions

No data.

Weaknesses

Sources

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