Amazon Linux 2023 : ruby3.2, ruby3.2-bundled-gems, ruby3.2-default-gems (ALAS2023-2025-929)

medium Nessus Plugin ID 234332

Synopsis

The remote Amazon Linux 2023 host is missing a security update.

Description

It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2023-2025-929 advisory.

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Starting in version 0.3.2 and prior to versions 0.3.8, 0.4.19, and 0.5.6, there is a possibility for denial of service by memory exhaustion in `net-imap`'s response parser. At any time while the client is connected, a malicious server can send can send highly compressed `uid-set` data which is automatically read by the client's receiver thread. The response parser uses `Range#to_a` to convert the `uid-set` data into arrays of integers, with no limitation on the expanded size of the ranges. Versions 0.3.8, 0.4.19, 0.5.6, and higher fix this issue. Additional details for proper configuration of fixed versions and backward compatibility are available in the GitHub Security Advisory. (CVE-2025-25186)

In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS) vulnerability. The method does not impose any limit on the length of the raw cookie value it processes. This oversight can lead to excessive resource consumption when parsing extremely large cookies. (CVE-2025-27219)

In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method. (CVE-2025-27220)

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.

Solution

Run 'dnf update ruby3.2 --releasever 2023.7.20250414' to update your system.

See Also

https://alas.aws.amazon.com/AL2023/ALAS-2025-929.html

https://alas.aws.amazon.com/cve/html/CVE-2025-25186.html

https://alas.aws.amazon.com/cve/html/CVE-2025-27219.html

https://alas.aws.amazon.com/cve/html/CVE-2025-27220.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: Medium

ID: 234332

File Name: al2023_ALAS2023-2025-929.nasl

Version: 1.1

Type: local

Agent: unix

Published: 4/14/2025

Updated: 4/14/2025

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2025-27220

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.3

Threat Score: 1.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:ruby3.2-libs-debuginfo, p-cpe:/a:amazon:linux:ruby3.2-rubygem-power_assert, p-cpe:/a:amazon:linux:ruby3.2-bundled-gems, p-cpe:/a:amazon:linux:ruby3.2-rubygem-bigdecimal, p-cpe:/a:amazon:linux:ruby3.2-rubygem-psych, p-cpe:/a:amazon:linux:ruby3.2-rubygem-rdoc, p-cpe:/a:amazon:linux:ruby3.2-rubygem-psych-debuginfo, p-cpe:/a:amazon:linux:ruby3.2-rubygem-json, p-cpe:/a:amazon:linux:ruby3.2, p-cpe:/a:amazon:linux:ruby3.2-rubygem-io-console, p-cpe:/a:amazon:linux:ruby3.2-rubygem-bundler, p-cpe:/a:amazon:linux:ruby3.2-doc, p-cpe:/a:amazon:linux:ruby3.2-libs, p-cpe:/a:amazon:linux:ruby3.2-rubygem-irb, p-cpe:/a:amazon:linux:ruby3.2-rubygems, p-cpe:/a:amazon:linux:ruby3.2-default-gems, p-cpe:/a:amazon:linux:ruby3.2-rubygem-rexml, p-cpe:/a:amazon:linux:ruby3.2-rubygem-rake, p-cpe:/a:amazon:linux:ruby3.2-devel, p-cpe:/a:amazon:linux:ruby3.2-bundled-gems-debuginfo, p-cpe:/a:amazon:linux:ruby3.2-rubygem-rbs-debuginfo, p-cpe:/a:amazon:linux:ruby3.2-debugsource, p-cpe:/a:amazon:linux:ruby3.2-rubygem-json-debuginfo, p-cpe:/a:amazon:linux:ruby3.2-rubygem-bigdecimal-debuginfo, p-cpe:/a:amazon:linux:ruby3.2-rubygem-minitest, p-cpe:/a:amazon:linux:ruby3.2-rubygem-typeprof, p-cpe:/a:amazon:linux:ruby3.2-rubygem-rbs, p-cpe:/a:amazon:linux:ruby3.2-rubygem-test-unit, cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:ruby3.2-rubygem-io-console-debuginfo, p-cpe:/a:amazon:linux:ruby3.2-rubygems-devel, p-cpe:/a:amazon:linux:ruby3.2-rubygem-rss, p-cpe:/a:amazon:linux:ruby3.2-debuginfo

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 4/9/2025

Vulnerability Publication Date: 2/10/2025

Reference Information

CVE: CVE-2025-25186, CVE-2025-27219, CVE-2025-27220