CVE-2026-120637: CGI versions before 5.00 for Perl take request parameters from the process command line arguments for an unrecognised REQUEST_METHOD Stig Palmquist 03 Nov 2026 23:50 UTC

========================================================================
CVE-2026-120637                                      CPAN Security Group
========================================================================

        CVE ID:  CVE-2026-120637

  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 take request parameters from the
process command line arguments for an unrecognised REQUEST_METHOD

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.

Problem types
-------------
- CWE-489 Active Debug Code

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/b753ff75a3bc4554c075cc37c1db605a55297029.patch