ADVISORIES

Amazon Linux Security Advisory

ALAS2023-2026-1807

Amazon Linux 2023 - ALAS2023-2026-1807: Important priority package update for ruby3.4

Details

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2026-42258: Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, symbol arguments to commands are vulnerable to a CRLF Injection / IMAP Command injection via Symbol arguments passed to IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

CVE-2026-42257: Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, several Net::IMAP commands accept a raw string argument that is sent to the server without validation or escaping. If this string is derived from user-controlled input, it may contain contain CRLF sequences, which an attacker can use to inject arbitrary IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

CVE-2026-42256: Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. From versions 0.4.0 to before 0.4.24, 0.5.0 to before 0.5.14, and 0.6.0 to before 0.6.4, when authenticating a connection with SCRAM-SHA1 or SCRAM-SHA256, a hostile server can perform a computational denial-of-service attack on the client process by sending a big iteration count value. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

CVE-2026-42246: Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.3.10, 0.4.24, 0.5.14, and 0.6.4, a man-in-the-middle attacker can cause Net::IMAP#starttls to return "successfully", without starting TLS. This issue has been patched in versions 0.3.10, 0.4.24, 0.5.14, and 0.6.4.

CVE-2026-42245: Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, Net::IMAP::ResponseReader has quadratic time complexity when reading large responses containing many string literals. A hostile server can send responses which are crafted to exhaust the client's CPU for a denial of service attack. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

CVE-2026-27820: zlib is a Ruby interface for the zlib compression/decompression library. Versions 3.0.0 and below, 3.1.0, 3.1.1, 3.2.0 and 3.2.1 contain a buffer overflow vulnerability in the Zlib::GzipReader. The zstream_buffer_ungets function prepends caller-provided bytes ahead of previously produced output but fails to guarantee the backing Ruby string has enough capacity before the memmove shifts the existing data. This can lead to memory corruption when the buffer length exceeds capacity. This issue has been fixed in versions 3.0.1, 3.1.2 and 3.2.3.

Affected packages

EcosystemPackageAffected versions
Amazon Linux:2023ruby3.4
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-bundled-gems
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-bundled-gems-debuginfo
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-debuginfo
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-debugsource
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-default-gems
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-devel
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-doc
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-libs
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-libs-debuginfo
All versions before 3.4.8-27.amzn2023.0.6 (fixed in 3.4.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-bigdecimal
All versions before 3.1.8-27.amzn2023.0.6 (fixed in 3.1.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-bigdecimal-debuginfo
All versions before 3.1.8-27.amzn2023.0.6 (fixed in 3.1.8-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-bundler
All versions before 2.6.9-27.amzn2023.0.6 (fixed in 2.6.9-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-io-console
All versions before 0.8.1-27.amzn2023.0.6 (fixed in 0.8.1-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-io-console-debuginfo
All versions before 0.8.1-27.amzn2023.0.6 (fixed in 0.8.1-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-irb
All versions before 1.14.3-27.amzn2023.0.6 (fixed in 1.14.3-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-json
All versions before 2.9.1-27.amzn2023.0.6 (fixed in 2.9.1-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-json-debuginfo
All versions before 2.9.1-27.amzn2023.0.6 (fixed in 2.9.1-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-minitest
All versions before 5.25.4-27.amzn2023.0.6 (fixed in 5.25.4-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-power_assert
All versions before 2.0.5-27.amzn2023.0.6 (fixed in 2.0.5-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-psych
All versions before 5.2.2-27.amzn2023.0.6 (fixed in 5.2.2-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-psych-debuginfo
All versions before 5.2.2-27.amzn2023.0.6 (fixed in 5.2.2-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-racc
All versions before 1.8.1-27.amzn2023.0.6 (fixed in 1.8.1-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-racc-debuginfo
All versions before 1.8.1-27.amzn2023.0.6 (fixed in 1.8.1-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-rake
All versions before 13.2.1-27.amzn2023.0.6 (fixed in 13.2.1-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-rbs
All versions before 3.8.0-27.amzn2023.0.6 (fixed in 3.8.0-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-rbs-debuginfo
All versions before 3.8.0-27.amzn2023.0.6 (fixed in 3.8.0-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-rdoc
All versions before 6.14.0-27.amzn2023.0.6 (fixed in 6.14.0-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-rexml
All versions before 3.4.4-27.amzn2023.0.6 (fixed in 3.4.4-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-rss
All versions before 0.3.1-27.amzn2023.0.6 (fixed in 0.3.1-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-test-unit
All versions before 3.6.7-27.amzn2023.0.6 (fixed in 3.6.7-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygem-typeprof
All versions before 0.30.1-27.amzn2023.0.6 (fixed in 0.30.1-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygems
All versions before 3.6.9-27.amzn2023.0.6 (fixed in 3.6.9-27.amzn2023.0.6)
Amazon Linux:2023ruby3.4-rubygems-devel
All versions before 3.6.9-27.amzn2023.0.6 (fixed in 3.6.9-27.amzn2023.0.6)

References