CVE-2026-120645

CGI versions before 5.00 for Perl allow denial of service via submitted values used as a regex for optgroup selection in scrolling_list

Published Nov 3, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
CGI versions before 5.00 for Perl allow denial of service via submitted values used as a regex for optgroup selection in scrolling_list.

When rendering option groups, scrolling_list marks the selected options by interpolating each selected value, by default taken from the request parameters, unescaped into a substitution pattern.

A client can make the request die with an invalid pattern, or tie up the process with one that backtracks heavily.

Analysis

AI-generated

Technical impact

CGI.pm versions prior to 5.00 create option groups by interpolating user‑supplied values into a regular expression that selects optgroups. The input parameters are inserted without escaping, so an attacker can supply an invalid or heavily backtracking regex that causes the server process to fail or become unresponsive, resulting in a denial of service.

Affected Systems

The vulnerability affects the CGI Perl module maintained by LEEJO, specifically all releases before 5.00, such as CGI‑4.72 and earlier. Any environment using CGI.pm to process form requests with the scrolling_list feature may be impacted.

Risk and Exploitability

With a CVSS score of 7.5, the vulnerability is classified as high severity. The EPSS score is 0.00389, indicating a low but non‑zero probability of exploitation, and the flaw is not listed in CISA KEV. Nonetheless, the design allows a remote attacker to trigger a crash or sustained backtrack by sending a crafted HTTP request that exploits the unescaped interpolation of user values into a regular expression in scrolling_list. The attack does not require authentication and can lead to denial of service, making it a significant concern for publicly exposed web applications that use the affected CGI module.

Remediation

Vendor Solution

Upgrade to CGI 5.00 or later.


OpenCVE Recommended Actions

  • Upgrade to CGI 5.00 or later.
  • Validate or escape all user‑supplied values before they are used as a regular expression in scrolling_list.
  • As a temporary workaround, disable the optgroup selection feature or replace it with an implementation that does not interpolate raw input into regexes.

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': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

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

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'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Description CGI versions before 5.00 for Perl allow denial of service via submitted values used as a regex for optgroup selection in scrolling_list. When rendering option groups, scrolling_list marks the selected options by interpolating each selected value, by default taken from the request parameters, unescaped into a substitution pattern. A client can make the request die with an invalid pattern, or tie up the process with one that backtracks heavily.
Title CGI versions before 5.00 for Perl allow denial of service via submitted values used as a regex for optgroup selection in scrolling_list
Weaknesses CWE-1333
CWE-625
References

Subscriptions

No data.

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-625

    Permissive Regular Expression

Sources

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