Amazon Linux Security Advisory
ALAS2023-2025-929
Amazon Linux 2023 - ALAS2023-2025-929: Medium priority package update for ruby3.2
Details
Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2025-27220: 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-27219: 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-25186: 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Amazon Linux:2023 | ruby3.2 | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-bundled-gems | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-bundled-gems-debuginfo | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-debuginfo | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-debugsource | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-default-gems | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-devel | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-doc | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-libs | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-libs-debuginfo | All versions before 3.2.7-183.amzn2023.0.4 (fixed in 3.2.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-bigdecimal | All versions before 3.1.3-183.amzn2023.0.4 (fixed in 3.1.3-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-bigdecimal-debuginfo | All versions before 3.1.3-183.amzn2023.0.4 (fixed in 3.1.3-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-bundler | All versions before 2.4.19-183.amzn2023.0.4 (fixed in 2.4.19-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-io-console | All versions before 0.6.0-183.amzn2023.0.4 (fixed in 0.6.0-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-io-console-debuginfo | All versions before 0.6.0-183.amzn2023.0.4 (fixed in 0.6.0-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-irb | All versions before 1.6.2-183.amzn2023.0.4 (fixed in 1.6.2-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-json | All versions before 2.6.3-183.amzn2023.0.4 (fixed in 2.6.3-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-json-debuginfo | All versions before 2.6.3-183.amzn2023.0.4 (fixed in 2.6.3-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-minitest | All versions before 5.25.1-183.amzn2023.0.4 (fixed in 5.25.1-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-power_assert | All versions before 2.0.3-183.amzn2023.0.4 (fixed in 2.0.3-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-psych | All versions before 5.0.1-183.amzn2023.0.4 (fixed in 5.0.1-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-psych-debuginfo | All versions before 5.0.1-183.amzn2023.0.4 (fixed in 5.0.1-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-rake | All versions before 13.0.6-183.amzn2023.0.4 (fixed in 13.0.6-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-rbs | All versions before 2.8.2-183.amzn2023.0.4 (fixed in 2.8.2-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-rbs-debuginfo | All versions before 2.8.2-183.amzn2023.0.4 (fixed in 2.8.2-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-rdoc | All versions before 6.5.1.1-183.amzn2023.0.4 (fixed in 6.5.1.1-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-rexml | All versions before 3.3.9-183.amzn2023.0.4 (fixed in 3.3.9-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-rss | All versions before 0.3.1-183.amzn2023.0.4 (fixed in 0.3.1-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-test-unit | All versions before 3.5.7-183.amzn2023.0.4 (fixed in 3.5.7-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygem-typeprof | All versions before 0.21.3-183.amzn2023.0.4 (fixed in 0.21.3-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygems | All versions before 3.4.19-183.amzn2023.0.4 (fixed in 3.4.19-183.amzn2023.0.4) |
| Amazon Linux:2023 | ruby3.2-rubygems-devel | All versions before 3.4.19-183.amzn2023.0.4 (fixed in 3.4.19-183.amzn2023.0.4) |