Open Redirect Affecting perl-CGI package, versions <0:3.63-5.amzn2


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.3% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-PERLCGI-22631344
  • published20 Nov 2026
  • disclosed4 Nov 2026

Introduced: 4 Nov 2026

NewCVE-2026-120638  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 perl-CGI to version 0:3.63-5.amzn2 or higher.
This issue was patched in ALAS2-2026-4140.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-CGI package and not the perl-CGI package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

CGI versions before 5.00 for Perl allow open redirects via HTML entity decoding of the URL after application validation in redirect.

redirect decodes HTML entities in its URL before writing the Location header, so a URL the application has already validated can change meaning. For example, /&#47;evil.example/ becomes //evil.example/ and sends the user to another host.

CVSS Base Scores

version 3.1