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.
Published: 2026-11-03
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Execution of arbitrary command line arguments via offline debugging mode
Action: Upgrade
AI Analysis

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. 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. No public exploitation or EPSS score exists and the vulnerability is not 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 6.5 indicates moderate severity.

Generated by OpenCVE AI on November 4, 2026 at 13:41 UTC.

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 4, 2026 at 13:41 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': 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


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

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.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

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

Reserved: 2026-11-02T17:40:43.952Z

Link: CVE-2026-120637

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-120637

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-120637 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T13:45:14Z

Weaknesses