Summary
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.
Fixed packages 32
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2023 | ruby3.2 | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-bundled-gems | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-bundled-gems-debuginfo | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-debuginfo | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-debugsource | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-default-gems | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-devel | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-doc | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-libs | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-libs-debuginfo | 0:3.2.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-bigdecimal | 0:3.1.3-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-bigdecimal-debuginfo | 0:3.1.3-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-bundler | 0:2.4.19-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-io-console | 0:0.6.0-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-io-console-debuginfo | 0:0.6.0-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-irb | 0:1.6.2-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-json | 0:2.6.3-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-json-debuginfo | 0:2.6.3-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-minitest | 0:5.25.1-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-power_assert | 0:2.0.3-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-psych | 0:5.0.1-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-psych-debuginfo | 0:5.0.1-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-rake | 0:13.0.6-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-rbs | 0:2.8.2-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-rbs-debuginfo | 0:2.8.2-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-rdoc | 0:6.5.1.1-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-rexml | 0:3.3.9-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-rss | 0:0.3.1-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-test-unit | 0:3.5.7-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygem-typeprof | 0:0.21.3-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygems | 0:3.4.19-183.amzn2023.0.4 |
| Amazon Linux · 2023 | ruby3.2-rubygems-devel | 0:3.4.19-183.amzn2023.0.4 |
Vulnerabilities 3
-
Medium 6.5
Net::IMAP vulnerable to possible DoS by memory exhaustion
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 par…
-
Medium 5.8
CGI has Denial of Service (DoS) potential in Cookie.parse
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 …
-
Medium 4.0
CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement
In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.