Amazon Linux 2023 : ruby3.4、ruby3.4-bundled-gems、ruby3.4-default-gems (ALAS2023-2026-1807)

high Nessus プラグイン ID 319837

概要

リモートの Amazon Linux 2023 ホストに、セキュリティ更新プログラムがありません。

説明

したがって、ALAS2023-2026-1807 のアドバイザリに記載されている複数の脆弱性の影響を受けます。

zlib は、zlib 圧縮/展開ライブラリ用の Ruby インターフェースです。バージョン 3.0.0 以前、3.1.0、3.1.1、3.2.0、3.2.1 には、Zlib::GzipReader にバッファオーバーフローの脆弱性があります。zstream_buffer_ungets 関数は、以前に生成された出力の前に呼び出し元が提供したバイトを先頭に追加しますが、memmove が既存のデータをシフトする前に、バッキング Ruby 文字列に十分な容量があることを保証できません。これにより、バッファの長さが容量を超えると、メモリ破損が発生する可能性があります。この問題はバージョン 3.0.1、3.1.2、3.2.3 で修正されています。(CVE-2026-27820)

Net::IMAP は Ruby における Internet Message Access Protocol (IMAP) クライアント機能を実装します。バージョン 0.4.24、0.5.14、0.6.4 より前では、Net::IMAP::ResponseReader は、多数の文字列リテラルを含む大きな応答を読み取るときに二次時間計算量になります。悪意のあるサーバーが、サービス拒否攻撃でクライアントの CPU を枯渇させるように細工された応答を送信する可能性があります。この問題には、バージョン 0.4.24、0.5.14、および 0.6.4 でパッチが適用されています。(CVE-2026-42245)

Net::IMAP は Ruby における Internet Message Access Protocol (IMAP) クライアント機能を実装します。バージョン 0.3.10、0.4.24、0.5.14、0.6.4より前では、中間にいる攻撃者が、TLS を起動せずに Net::IMAP#starttls を正常に返す可能性があります。この問題には、バージョン 0.3.10、0.4.24、0.5.14、0.6.4 でパッチが適用されています。(CVE-2026-42246)

Net::IMAP は Ruby における Internet Message Access Protocol (IMAP) クライアント機能を実装します。0.4.0 から 0.4.24 より前、0.5.0 から 0.5.14 より前、0.6.0 から 0.6.4 より前のバージョンにおいて、SCRAM-SHA1 または SCRAM-SHA256 との接続を認証する際に、敵対的なサーバーが、大きな反復カウント値を送信することで、クライアントプロセスに対して計算量によるサービス拒否攻撃を実行する可能性があります。この問題には、バージョン 0.4.24、0.5.14、および 0.6.4 でパッチが適用されています。(CVE-2026-42256)

Net::IMAP は Ruby における Internet Message Access Protocol (IMAP) クライアント機能を実装します。バージョン 0.4.24、0.5.14、および 0.6.4 より前では、いくつかの Net::IMAP コマンドは、検証やエスケープを行わずにサーバーへ送信される生の文字列引数を受け入れます。この文字列がユーザー制御の入力から取得されたものである場合、CRLF シーケンスが含まれる可能性があり、攻撃者はこれを利用して任意の IMAP コマンドを注入できます。この問題には、バージョン 0.4.24、0.5.14、および 0.6.4 でパッチが適用されています。(CVE-2026-42257)

Net::IMAP は Ruby における Internet Message Access Protocol (IMAP) クライアント機能を実装します。バージョン 0.4.24、0.5.14、0.6.4 より前では、コマンドへのシンボル引数は、IMAP コマンドに渡されるシンボル引数を介した CRLF インジェクションや IMAP コマンドインジェクションに対して脆弱です。この問題には、バージョン 0.4.24、0.5.14、および 0.6.4 でパッチが適用されています。(CVE-2026-42258)

Tenable は、前述の記述ブロックをテスト済み製品のセキュリティアドバイザリから直接抽出しています。

Nessus はこれらの問題をテストしておらず、代わりにアプリケーションが自己報告するバージョン番号にのみ依存していることに注意してください。

ソリューション

「dnf update ruby3.4 --releasever 2023.12.20260608」または「dnf update --advisory ALAS2023-2026-1807 --releasever 2023.12.20260608」を実行してシステムを更新してください。

参考資料

https://alas.aws.amazon.com//AL2023/ALAS2023-2026-1807.html

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

https://explore.alas.aws.amazon.com/CVE-2026-27820.html

https://explore.alas.aws.amazon.com/CVE-2026-42245.html

https://explore.alas.aws.amazon.com/CVE-2026-42246.html

https://explore.alas.aws.amazon.com/CVE-2026-42256.html

https://explore.alas.aws.amazon.com/CVE-2026-42257.html

https://explore.alas.aws.amazon.com/CVE-2026-42258.html

プラグインの詳細

深刻度: High

ID: 319837

ファイル名: al2023_ALAS2023-2026-1807.nasl

バージョン: 1.1

タイプ: Local

エージェント: unix

公開日: 2026/6/8

更新日: 2026/6/8

サポートされているセンサー: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

リスク情報

VPR

リスクファクター: Medium

スコア: 6.7

CVSS v2

リスクファクター: Critical

基本値: 10

現状値: 7.4

ベクトル: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS スコアのソース: CVE-2026-42258

CVSS v3

リスクファクター: Critical

基本値: 9.8

現状値: 8.5

ベクトル: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

現状ベクトル: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

リスクファクター: High

Base Score: 7.6

Threat Score: 4.9

Threat Vector: CVSS:4.0/E:U

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

CVSS スコアのソース: CVE-2026-42246

脆弱性情報

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

必要な KB アイテム: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

エクスプロイトの容易さ: No known exploits are available

パッチ公開日: 2026/6/8

脆弱性公開日: 2026/4/16

参照情報

CVE: CVE-2026-27820, CVE-2026-42245, CVE-2026-42246, CVE-2026-42256, CVE-2026-42257, CVE-2026-42258