Distro advisory · AmazonLinux 2027
Important priority package update for perl-CGI
AmazonLinux 2027
What it fixes
Package updates are available for Amazon Linux 2027 that fix the following vulnerabilities: CVE-2026-120651: CGI versions before 5.00 for Perl allow an infinite loop on a short request body when $DISABLE_UPLOADS is set.
When $CGI::PUTDATA_UPLOAD or an upload hook is set, read_postdata_putdata takes a request body that is not a form submission. With $CGI::DISABLE_UPLOADS set, it discards the body by reading until Content-Length bytes have arrived. Once a body shorter than its Content-Length runs out, every read returns 0, so the loop never ends.
A client can keep a server process spinning with one such request.
CVE-2026-120650: CGI versions before 5.00 for Perl allow memory, CPU and disk exhaustion via missing or unenforced request size, parameter and upload limits.
$CGI::POST_MAX defaults to no limit, and when set is not enforced for chunked multipart bodies or for the boundary line of a multipart body without a boundary= parameter. Bodies saved as PUTDATA, POSTDATA or PATCHDATA uploads are read into memory in one go, and nothing limits the number of parameters or uploads.
CVE-2026-120648: CGI versions before 5.00 for Perl allow HTML injection via text containing --> in comment.
Arguments are placed between <!-- and --> without escaping, so text containing --> closes the comment early.
An application that passes request data to comment can be made to inject HTML into the page.
CVE-2026-120647: CGI versions before 5.00 for Perl allow Content-Disposition parameter injection via unescaped double quotes in the header attachment filename.
header(-attachment => $name) writes $name into the quoted filename parameter of Content-Disposition without escaping double quotes.
An application that passes request data as the attachment name can be made to send a second filename parameter, changing the name the response is saved under.
CVE-2026-120646: CGI versions from 4.71 before 5.00 for Perl allow denial of service via a plain string dereferenced as a symbolic…
Manual fix · AmazonLinux 2027
sudo yum updateinfo info ALAS2027-2026-337sudo yum upgrade --advisory=ALAS2027-2026-337rpm -q perl-CGISources