External Initialization of Trusted Variables or Data Stores Affecting perl-CGI package, versions <0:3.63-5.amzn2


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.19% (9th 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-22631346
  • published20 Nov 2026
  • disclosed4 Nov 2026

Introduced: 4 Nov 2026

NewCVE-2026-120640  (opens in a new tab)
CWE-454  (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 the POSTDATA, PUTDATA, PATCHDATA and XForms:Model parameters to be set from the query string or form fields.

CGI stores a non-form request body under POSTDATA, PUTDATA or PATCHDATA, and an XForms body under XForms:Model, but also accepts these names from the query string, a form field or a multipart part, so an application cannot tell a client-sent value from the real body.

A cross-site HTML form can post POSTDATA={"admin":true} to an endpoint that reads JSON from param('POSTDATA'), a request forgery that needs no CORS preflight.

CVSS Base Scores

version 3.1