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 Stig Palmquist 03 Nov 2026 23:57 UTC

========================================================================
CVE-2026-120645                                      CPAN Security Group
========================================================================

        CVE ID:  CVE-2026-120645

  Distribution:  CGI
      Versions:  before 5.00
      MetaCPAN:  https://metacpan.org/dist/CGI
      VCS Repo:  https://github.com/leejo/CGI.pm

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

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.

Problem types
-------------
- CWE-1333 Inefficient Regular Expression Complexity
- CWE-625 Permissive Regular Expression

Solutions
---------
Upgrade to CGI 5.00 or later.

References
----------
https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm
https://metacpan.org/release/LEEJO/CGI-5.00/changes
https://github.com/leejo/CGI.pm/commit/824956fbb0c4eb77044ba2dc9180a30df12cb309.patch