Amazon Linux 2 : perl-CGI (ALAS-2026-4140)
| Reporter | Title | Published | Views | Family All 395 |
|---|---|---|---|---|
| Amazon Linux 2023 : perl-CGI, perl-CGI-tests (ALAS2023-2026-3436) | 12 Nov 202600:00 | – | nessus | |
| AlmaLinux 9 : perl-CGI (ALSA-2026:99215) | 19 Nov 202600:00 | – | nessus | |
| AlmaLinux 8 : perl-CGI (ALSA-2026:99849) | 13 Nov 202600:00 | – | nessus | |
| Rocky Linux 10.3 [CIQ] Security Update: perl-CGI Multiple Vulnerabilities (crlsa-2026_99212) | 14 Nov 202600:00 | – | nessus | |
| Rocky Linux 8 [CIQ] Security Update: perl-CGI Multiple Vulnerabilities (crlsa-2026_99849) | 15 Nov 202600:00 | – | nessus | |
| Rocky Linux 9 [CIQ] Security Update: perl-CGI Multiple Vulnerabilities (crlsa-2026_99215) | 14 Nov 202600:00 | – | nessus | |
| Fedora 44 : perl-CGI (2026-516e427bac) | 10 Nov 202600:00 | – | nessus | |
| Fedora 45 : perl-CGI (2026-a04615c725) | 10 Nov 202600:00 | – | nessus | |
| Fedora 43 : perl-CGI (2026-a3a026d9ff) | 10 Nov 202600:00 | – | nessus | |
| Oracle Linux 9 : perl-CGI (ELSA-2026-99215) | 19 Nov 202600:00 | – | nessus |
10
10
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Amazon Linux 2 Security Advisory ALAS-2026-4140.
##
include('compat.inc');
if (description)
{
script_id(383525);
script_version("1.1");
script_set_attribute(attribute:"plugin_modification_date", value:"2026/11/19");
script_cve_id(
"CVE-2026-120632",
"CVE-2026-120633",
"CVE-2026-120634",
"CVE-2026-120635",
"CVE-2026-120636",
"CVE-2026-120637",
"CVE-2026-120638",
"CVE-2026-120639",
"CVE-2026-120640",
"CVE-2026-120641",
"CVE-2026-120642",
"CVE-2026-120644",
"CVE-2026-120645",
"CVE-2026-120647",
"CVE-2026-120648",
"CVE-2026-120650"
);
script_name(english:"Amazon Linux 2 : perl-CGI (ALAS-2026-4140)");
script_set_attribute(attribute:"synopsis", value:
"The remote Amazon Linux 2 host is missing a security update.");
script_set_attribute(attribute:"description", value:
"The version of perl-CGI installed on the remote host is prior to 3.63-5. It is, therefore, affected by multiple
vulnerabilities as referenced in the ALAS2-2026-4140 advisory.
CGI versions before 5.00 for Perl allow CPU exhaustion via a backtracking regex on the XForms
multipart/related Content-Type.
When a POST Content-Type contains multipart/related, the boundary and start parameters are extracted with
an unanchored pattern that puts .+ on either side of the boundary capture, which backtracks in cubic time
on a header that does not match. No request body is needed. (CVE-2026-120632)
CGI versions before 5.00 for Perl trust the client X-Forwarded-Host header in url, self_url, virtual_host
and virtual_port.
These take the host name and port from the X-Forwarded-Host request header when present, and otherwise
from Host, without validating either. The URLs from url and self_url are the default redirect location and
the start_html(-base=>1) base href, and the default start_form action when REQUEST_URI is not set.
A client can poison shared caches, and URLs the application stores or sends, with redirects, links and
scripts that point at a host it controls. (CVE-2026-120633)
CGI::Carp versions before 5.00 for Perl leak warnings across requests in persistent environments via the
warningsToBrowser buffer.
Warnings are held in a package-level buffer until warningsToBrowser writes them into the page as HTML
comments, and the buffer is never cleared between requests. Under mod_perl, FastCGI or PSGI, warnings from
one request are written into a later one.
Warnings that contain one user's request data can appear in the HTML sent to another user.
(CVE-2026-120634)
CGI versions before 5.00 for Perl allow form fields to be smuggled past proxies and WAFs via multipart
parsing that differs from the RFCs.
The multipart/form-data parser matches the boundary anywhere rather than at the start of a line, uses the
boundary without its leading -- for some client-supplied User-Agent values, finds the Content-Disposition
name and filename inside the quoted values of other parameters, and corrupts parts when the boundary nears
the 4096-byte read size. (CVE-2026-120635)
CGI versions before 5.00 for Perl allow open redirects and script injection via URLs built from
REQUEST_URI in url and start_form.
url(-absolute=>1), url(-relative=>1) and the default start_form action are built from the client-supplied
REQUEST_URI without validation. The result can be protocol-relative (//evil.example), absolute-form
(http://evil.example/) or contain backslashes, and url(-relative=>1) can return a javascript: URL. Links
and form posts built from these URLs can go to another host. (CVE-2026-120636)
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.
(CVE-2026-120637)
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, //evil.example/ becomes //evil.example/ and sends
the user to another host. (CVE-2026-120638)
CGI versions before 5.00 for Perl allow HTTP header injection via entity decoding after the newline check
in header and unchecked values in multipart_start and do_push.
With autoEscape off, header decodes HTML entities in extra header values after its newline check, so an
encoded CR or LF reaches the response. multipart_start does not check header values for newlines, and
do_push does not check the type it prints in each part.
An application that passes request data into these header values can be made to add headers or split the
response. (CVE-2026-120639)
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. (CVE-2026-120640)
CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and
Windows paths.
The name returned for an uploaded file is the filename parameter of the part's Content-Disposition header,
unchanged.
An application that saves the upload under this name can be made to write outside the intended directory.
(CVE-2026-120641)
CGI versions before 5.00 for Perl return request-derived values untainted under taint mode.
The upload filename, uploadInfo values, some path_info and script_name values, Accept results, and the
name lists from url_param and cookie are returned without the taint flag, as is a cookie named expires
from 4.67 on.
These values come from regex captures or hash keys, which Perl does not taint, so they pass -T checks
unvalidated. (CVE-2026-120642)
CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain
and expires values.
The path, domain and expires values are written into the Set-Cookie header without checking for semicolons
or control characters.
An application that sets them from request data can be made to add other cookie attributes, such as Domain
or SameSite. (CVE-2026-120644)
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. (CVE-2026-120645)
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-120647)
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-120648)
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-120650)
Tenable has extracted the preceding description block directly from the tested product security advisory.
Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version
number.");
script_set_attribute(attribute:"see_also", value:"https://alas.aws.amazon.com//AL2/ALAS2-2026-4140.html");
script_set_attribute(attribute:"see_also", value:"https://alas.aws.amazon.com/faqs.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120632.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120633.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120634.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120635.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120636.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120637.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120638.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120639.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120640.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120641.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120642.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120644.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120645.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120647.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120648.html");
script_set_attribute(attribute:"see_also", value:"https://explore.alas.aws.amazon.com/CVE-2026-120650.html");
script_set_attribute(attribute:"solution", value:
"Run 'yum update perl-CGI' or
or 'yum update --advisory ALAS2-2026-4140' to update your system.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2026-120647");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_set_attribute(attribute:"vuln_publication_date", value:"2026/11/03");
script_set_attribute(attribute:"patch_publication_date", value:"2026/11/19");
script_set_attribute(attribute:"plugin_publication_date", value:"2026/11/19");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:perl-CGI");
script_set_attribute(attribute:"cpe", value:"cpe:/o:amazon:linux:2");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Amazon Linux Local Security Checks");
script_copyright(english:"This script is Copyright (C) 2026 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("ssh_get_info2.nasl");
script_require_keys("Host/local_checks_enabled", "Host/AmazonLinux/release", "Host/AmazonLinux/rpm-list");
exit(0);
}
include("rpm2.inc");
if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
var alas_release = get_kb_item("Host/AmazonLinux/release");
if (isnull(alas_release) || !strlen(alas_release)) audit(AUDIT_OS_NOT, "Amazon Linux");
var os_ver = pregmatch(pattern: "^AL(A|\d+|-\d+)", string:alas_release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Amazon Linux");
os_ver = os_ver[1];
if (os_ver != "2")
{
if (os_ver == 'A') os_ver = 'AMI';
audit(AUDIT_OS_NOT, "Amazon Linux 2", "Amazon Linux " + os_ver);
}
if (!get_kb_item("Host/AmazonLinux/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
var pkgs = [
{'reference':'perl-CGI-3.63-5.amzn2', 'release':'AL2', 'rpm_spec_vers_cmp':TRUE}
];
var flag = 0;
foreach var package_array ( pkgs ) {
var reference = NULL;
var _release = NULL;
var sp = NULL;
var _cpu = NULL;
var el_string = NULL;
var rpm_spec_vers_cmp = NULL;
var epoch = NULL;
var allowmaj = NULL;
var exists_check = NULL;
var cves = NULL;
if (!empty_or_null(package_array['reference'])) reference = package_array['reference'];
if (!empty_or_null(package_array['release'])) _release = package_array['release'];
if (!empty_or_null(package_array['sp'])) sp = package_array['sp'];
if (!empty_or_null(package_array['cpu'])) _cpu = package_array['cpu'];
if (!empty_or_null(package_array['el_string'])) el_string = package_array['el_string'];
if (!empty_or_null(package_array['rpm_spec_vers_cmp'])) rpm_spec_vers_cmp = package_array['rpm_spec_vers_cmp'];
if (!empty_or_null(package_array['epoch'])) epoch = package_array['epoch'];
if (!empty_or_null(package_array['allowmaj'])) allowmaj = package_array['allowmaj'];
if (!empty_or_null(package_array['exists_check'])) exists_check = package_array['exists_check'];
if (!empty_or_null(package_array['cves'])) cves = package_array['cves'];
if (reference && _release && (!exists_check || rpm_exists(release:_release, rpm:exists_check))) {
if (rpm_check(release:_release, sp:sp, cpu:_cpu, reference:reference, epoch:epoch, el_string:el_string, rpm_spec_vers_cmp:rpm_spec_vers_cmp, allowmaj:allowmaj, cves:cves)) flag++;
}
}
if (flag)
{
security_report_v4(
port : 0,
severity : SECURITY_HOLE,
extra : rpm_report_get()
);
exit(0);
}
else
{
var tested = pkg_tests_get();
if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
else audit(AUDIT_PACKAGE_NOT_INSTALLED, "perl-CGI");
}
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
19 Nov 2026 00:00Current
5.9Medium risk
Vulners AI Score5.9
CVSS 3.19.8
EPSS0.00527
SSVC