[security - high] ruby:4.0 security, bug fix, and enhancement update, ruby-4.0.6-34.module+el9+1183+30c0edff
エラータID: AXSA:2026-1667:01
Ruby is an extensible, interpreted, object-oriented, scripting language. It has features to process text files and to perform system management tasks.
Security Fix(es):
* zlib: zlib: Memory corruption via buffer overflow in Zlib::GzipReader (CVE-2026-27820)
* net-imap: Net::IMAP: Arbitrary IMAP command injection via CRLF sequences in unvalidated input (CVE-2026-42257)
* ruby/net-imap: ruby: Net::IMAP: Denial of Service via large iteration count in SCRAM authentication (CVE-2026-42256)
* net-imap: Net::IMAP: Command injection via non-synchronizing literals (CVE-2026-47240)
* net-imap: Net::IMAP: Arbitrary IMAP command injection due to improper input validation (CVE-2026-47242)
* net-imap: rubygem-net-imap: Net::IMAP: Denial of Service via malformed command input (CVE-2026-47241)
Bug Fix(es) and Enhancement(s):
* ruby:4.0/ruby: Rebase to the latest Ruby 4.0 release [rhel-9.8.z] (JIRA:RHEL-211301)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
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.
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-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-47240
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a "raw data" argument that is sent verbatim after validation to prevent command injection. However, if a server does not support non-synchronizing literals, it may still be possible to inject arbitrary IMAP commands inside non-synchronizing literals. A server without support for non-synchronizing literals may interpret the "+}\r\n" as the end of a malformed command line and respond with a tagged BAD. In that case, the contents of the literal will be interpreted as one or more new pipelined commands, allowing a CRLF command injection attack to succeed. This affects criteria for #search and #uid_search; search_keys for #sort, #thread, #uid_sort, and #uid_thread; and attr for #fetch and #uid_fetch. This vulnerability is fixed in 0.6.5 and 0.5.15.
CVE-2026-47241
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a raw string argument which is only validated to prevent CRLF injection and then sent verbatim. If this string is derived from user-controlled input, an attacker can force the next command to be absorbed as a continuation of the first command. This will cause the first command to eventually fail, but also prevents it from returning until another command is sent (from another thread). That other command will not return until the connection is closed. This vulnerability is fixed in 0.6.5 and 0.5.15.
CVE-2026-47242
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, when Net::IMAP#id is called with a hash argument, although the ID field value strings are correctly quoted (escaping quoted specials), they were not validated to prohibit CRLF sequences. While Net::IMAP#enable does process its arguments for aliases, it does not validate them as valid atoms (or as a list of valid atoms). The #to_s value is sent verbatim. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. This vulnerability is fixed in 0.6.5 and 0.5.15.
Modularity name: "ruby"
Stream name: "4.0"
Update packages.
N/A
SRPMS
- rpm-local-generator-support-1-1.module+el9+1183+30c0edff.src.rpm
MD5: 952060d2fa54d4c826da292220cac021
SHA-256: 2cca774acf92ffc31333cd2ce594bb606f15684d8b48cc2ef00d7546379cb80c
Size: 7.31 kB - rubygem-mysql2-0.5.7-1.module+el9+1183+30c0edff.src.rpm
MD5: b606c27ef17d41c0c320a2156b1cbfa7
SHA-256: 643e7f68dea715d61f2eb346f85e8bfde7cba86e8db61c9ffb45a5d452c225d0
Size: 122.51 kB - rubygem-pg-1.6.3-1.module+el9+1183+30c0edff.src.rpm
MD5: 401d310ff27efe494cad9bf86d4189fb
SHA-256: 31ee0f910ab84dcedb9f98d8de3f4a387e36fc07f2f82470bcf8bdf82b475726
Size: 300.49 kB - ruby-4.0.6-34.module+el9+1183+30c0edff.src.rpm
MD5: 3d6a40755bf6c90457ed8cac15d9b5dc
SHA-256: aa9c6c754a4488ec011d37d4bc50034f4f5a1c8944316e944345e7e21abd5769
Size: 17.22 MB
Asianux Server 9 for x86_64
- ruby-4.0.6-34.module+el9+1183+30c0edff.i686.rpm
MD5: d2dd04ed6a7f3e129ad5ac8a7249815b
SHA-256: a540939331bd11151fc0ddbc26fa63ff02fd8ffeeffac75fff7b418d87e87f00
Size: 41.56 kB - ruby-4.0.6-34.module+el9+1183+30c0edff.x86_64.rpm
MD5: caf18b6792ae0f1ec70a156865ce0f01
SHA-256: 59d87b5c381ac5c9c42af6f0b8c0a33366b493105019b50ced4ba9f9500fd874
Size: 41.51 kB - ruby-bundled-gems-4.0.6-34.module+el9+1183+30c0edff.i686.rpm
MD5: adb6441fa65afe0641f27d4be9b66310
SHA-256: d3a7c5732a9203226159cf8c2d866973d9eb86b73319b58aac132222ea340bb4
Size: 755.04 kB - ruby-bundled-gems-4.0.6-34.module+el9+1183+30c0edff.x86_64.rpm
MD5: 774c0ecabf57dca1edf0f902686f06ca
SHA-256: c98a1f1dff7b2d5ff9d7b8edc8be3202fd227736ea1bb33ca4c1529bfd1f79c3
Size: 755.59 kB - ruby-debugsource-4.0.6-34.module+el9+1183+30c0edff.i686.rpm
MD5: 5aebc2947d4581e12ec5bff777380628
SHA-256: e641d7b80eef3123465e6639d766e2b504f478c2a6d8275d9e3d03086a28dedf
Size: 4.25 MB - ruby-debugsource-4.0.6-34.module+el9+1183+30c0edff.x86_64.rpm
MD5: 687ba95ba1ed26e7b31aa05e863df8e8
SHA-256: efbc0549e3aabbcbdbb36f7796f961c5ae3725ca96424ce126ea4b29c6025c85
Size: 4.58 MB - ruby-default-gems-4.0.6-34.module+el9+1183+30c0edff.noarch.rpm mismatched
MD5: b0fbf82c9f0a65bcb96407f4be28c94e
SHA-256: 0f5b8f2b10b2e4218aa42b4a821e5300be220f549c950cad4486be9c8c8901c6
Size: 40.79 kB - ruby-default-gems-4.0.6-34.module+el9+1183+30c0edff.noarch.rpm
MD5: b0fbf82c9f0a65bcb96407f4be28c94e
SHA-256: 0f5b8f2b10b2e4218aa42b4a821e5300be220f549c950cad4486be9c8c8901c6
Size: 40.79 kB - ruby-devel-4.0.6-34.module+el9+1183+30c0edff.i686.rpm
MD5: 884bf1a9732644f5c19f383ecc47d742
SHA-256: 9268b929a85c7d03013b23a1cd1fd0fee478c2478e57e89a849d8613442bb75f
Size: 341.21 kB - ruby-devel-4.0.6-34.module+el9+1183+30c0edff.x86_64.rpm
MD5: 7ad4b27b09f66496ac23dd63703881a5
SHA-256: 129f24afc0f5ce31b236db90a57d7bb664714c57c9433659371e05ecb93efd89
Size: 341.04 kB - ruby-doc-4.0.6-34.module+el9+1183+30c0edff.noarch.rpm
MD5: 9c39fe60d78793323e6407cf3d5607d6
SHA-256: b6d67024e1a3e416aa6df6931b707e59e82a4b5c4c2081b674f6d5c76fa63f93
Size: 6.59 MB - ruby-doc-4.0.6-34.module+el9+1183+30c0edff.noarch.rpm mismatched
MD5: 9c39fe60d78793323e6407cf3d5607d6
SHA-256: b6d67024e1a3e416aa6df6931b707e59e82a4b5c4c2081b674f6d5c76fa63f93
Size: 6.59 MB - rubygem-bigdecimal-4.0.1-34.module+el9+1183+30c0edff.i686.rpm
MD5: 8ba621100c48d79e2108a15e08d123ec
SHA-256: 91b27be4f80efa84077acf8e2a112edf64b2cfd85745ba1e24f0eacb6f869a64
Size: 77.35 kB - rubygem-bigdecimal-4.0.1-34.module+el9+1183+30c0edff.x86_64.rpm
MD5: 5296da9cac45c7e7d592dafc19254eae
SHA-256: 5bccebd0546ed8b5db482cc4689ae22e3171ba77a5c2a08a3e218982e9503e12
Size: 72.86 kB - rubygem-bundler-4.0.16-34.module+el9+1183+30c0edff.noarch.rpm mismatched
MD5: c97fb60420b02e4f983b8ba931b690d2
SHA-256: 2d55e56d787a21e7b1d6974192fadbce7ad5638d1d03672a3d755f14f9746469
Size: 485.98 kB - rubygem-bundler-4.0.16-34.module+el9+1183+30c0edff.noarch.rpm
MD5: c97fb60420b02e4f983b8ba931b690d2
SHA-256: 2d55e56d787a21e7b1d6974192fadbce7ad5638d1d03672a3d755f14f9746469
Size: 485.98 kB - rubygem-io-console-0.8.2-34.module+el9+1183+30c0edff.i686.rpm
MD5: dce3bae7cb915cd4884f1f24408b53a7
SHA-256: 9326027dba71bdd08530cb358cec1411687c74ee3dc11aa7988860be933b7928
Size: 24.70 kB - rubygem-io-console-0.8.2-34.module+el9+1183+30c0edff.x86_64.rpm
MD5: a6314709101df0778e9694e72a884ac2
SHA-256: 65f5b985317a9b61540323c66730221e78463fc86fcf0d374dc2c65273e52da6
Size: 23.25 kB - rubygem-irb-1.16.0-34.module+el9+1183+30c0edff.noarch.rpm
MD5: 9ccdeab487e5146c1295ae43e0187359
SHA-256: a70ced74a3a9a3c5099fe23103864e0565b224e3792ee6496f2189a707028ae8
Size: 124.76 kB - rubygem-irb-1.16.0-34.module+el9+1183+30c0edff.noarch.rpm mismatched
MD5: 9ccdeab487e5146c1295ae43e0187359
SHA-256: a70ced74a3a9a3c5099fe23103864e0565b224e3792ee6496f2189a707028ae8
Size: 124.76 kB - rubygem-json-2.18.0-34.module+el9+1183+30c0edff.i686.rpm
MD5: 8603631c30d0de1d627288c6ceb73b0e
SHA-256: 24722c468bb727f8ea7a3cab0662ea8cfcce3f2404e5162d70b3f9439310e9fa
Size: 84.23 kB - rubygem-json-2.18.0-34.module+el9+1183+30c0edff.x86_64.rpm
MD5: 72c1afdee800b0dbdc9bb1e352f9422b
SHA-256: 60ce0f6f7a24f01c55492a3d92cb196599675d649167310740f9234f6d25c6a5
Size: 87.00 kB - rubygem-minitest-6.0.0-34.module+el9+1183+30c0edff.noarch.rpm
MD5: b5101c86a1ec4817f7fd67f532878c02
SHA-256: 3a5d7c6493425061e6c15d2c663663abecf5b5e67000f0d52c10a0682701eb12
Size: 109.52 kB - rubygem-minitest-6.0.0-34.module+el9+1183+30c0edff.noarch.rpm mismatched
MD5: b5101c86a1ec4817f7fd67f532878c02
SHA-256: 3a5d7c6493425061e6c15d2c663663abecf5b5e67000f0d52c10a0682701eb12
Size: 109.52 kB - rubygem-mysql2-0.5.7-1.module+el9+1183+30c0edff.x86_64.rpm
MD5: 1f4279957f5d66823bb4e40daf41f257
SHA-256: d4e8bf811939382985028d49d28e31eb7f39d9ac45eb4f9ffe4148248852db7f
Size: 52.12 kB - rubygem-mysql2-debugsource-0.5.7-1.module+el9+1183+30c0edff.x86_64.rpm
MD5: 342ae6b46d8b91cdb85d73f57c57f3f1
SHA-256: e062ea56a03fa06e75881accc0eb918bbdc53709b7ad9e5e8aeae10194a27292
Size: 36.08 kB - rubygem-mysql2-doc-0.5.7-1.module+el9+1183+30c0edff.noarch.rpm
MD5: 8796eaddc889a620bb9e4e167ca66c47
SHA-256: 8c84fa3a76f36ca3a04af350d6bceb119cf2136c3e848b067fc695769c9fb2a0
Size: 115.91 kB - rubygem-pg-1.6.3-1.module+el9+1183+30c0edff.x86_64.rpm
MD5: e5e04e4a3d65532916f4940d8a25cbb9
SHA-256: 3f23235748b7013f3df8ab191a87c7c1e98bc7305d5569fea1cd7b2752a2d0f2
Size: 134.39 kB - rubygem-pg-debugsource-1.6.3-1.module+el9+1183+30c0edff.x86_64.rpm
MD5: c0f9d801ee37d7800f6a9c5b2f7f65c6
SHA-256: 6c54be24a4047e6e999a2fca120ee23451032d400846d0237025b29c7d5720e0
Size: 107.65 kB - rubygem-pg-doc-1.6.3-1.module+el9+1183+30c0edff.noarch.rpm
MD5: 3df23fcfca79bf34cf385ddbd18a8c5e
SHA-256: 5fb9bb2488615c431fbc53e73833827c62531601836c58886ba107cb9a3db534
Size: 563.86 kB - rubygem-power_assert-3.0.1-34.module+el9+1183+30c0edff.noarch.rpm mismatched
MD5: 6c1add2de7c6b5e09e5f79a4b86b5df0
SHA-256: 55e775ab88b65b241e67aabc236894650b8fad5f8f47973d7be5500b151553c1
Size: 24.73 kB - rubygem-power_assert-3.0.1-34.module+el9+1183+30c0edff.noarch.rpm
MD5: 6c1add2de7c6b5e09e5f79a4b86b5df0
SHA-256: 55e775ab88b65b241e67aabc236894650b8fad5f8f47973d7be5500b151553c1
Size: 24.73 kB - rubygem-psych-5.3.1-34.module+el9+1183+30c0edff.i686.rpm
MD5: 558c6acaa794de7aed85db90448269f6
SHA-256: 7da82ecf9094a8ababfee9b72fdc3f3b18f4fab6ccbc30374fcf3d77305f30b5
Size: 61.83 kB - rubygem-psych-5.3.1-34.module+el9+1183+30c0edff.x86_64.rpm
MD5: 9113ffadcedf68a97ecf59cd4e3c6551
SHA-256: 9e7c270d6e138f7c66783e970566c41acbd78ff2f01d90ccb583ade1dfe8f5b8
Size: 60.63 kB - rubygem-racc-1.8.1-34.module+el9+1183+30c0edff.i686.rpm
MD5: bab582f7f39452fc2b109d3ee9c8e928
SHA-256: ee219763f95c8a3e9de3dea15008596c81ea8f30d6cecfed99221701a89b6fcc
Size: 81.95 kB - rubygem-racc-1.8.1-34.module+el9+1183+30c0edff.x86_64.rpm
MD5: f1af18e8d9cfb8df12fed1aeec6bac6c
SHA-256: 21e7086b23062f73b09a0a0cb6994713fbfe5389e8345912c09f5fa253b49372
Size: 81.58 kB - rubygem-rake-13.3.1-34.module+el9+1183+30c0edff.noarch.rpm
MD5: bb6b052c97d90b2dd0a791eebe406b74
SHA-256: 59662623a1978e198e46c815ba7b776dc90bd53c226b5ec821f6c8e3613e9b4f
Size: 102.96 kB - rubygem-rake-13.3.1-34.module+el9+1183+30c0edff.noarch.rpm mismatched
MD5: bb6b052c97d90b2dd0a791eebe406b74
SHA-256: 59662623a1978e198e46c815ba7b776dc90bd53c226b5ec821f6c8e3613e9b4f
Size: 102.96 kB