Amazon Linux 2:ruby (ALASRUBY3.0-2023-002)

critical Nessus Plugin ID 181966

概要

遠端 Amazon Linux 2 主機缺少安全性更新。

說明

遠端主機上安裝的 ruby 版本為 3.0.4-155 之前版本。因此,會受到 ALAS2RUBY3.0-2023-002 公告中所提及的多個弱點影響。

- 在 Ruby 3.x 至 3.0.4 和 3.1.x 至 3.1.2 版本的 Regexp 編譯器中發現一個重複釋放問題。如果受害者嘗試從不受信任的使用者輸入建立 Regexp,攻擊者可能會寫入未預期的記憶體位置。(CVE-2022-28738)

- Ruby 2.6.10 之前版本、2.7.x 至 2.7.6、3.x 至 3.0.4 和 3.1.x 至 3.1.2 版本中有一個緩衝區過度讀取弱點。當進行字串到浮點數 (包括 Kernel#Float 和 String#to_f) 的轉換時,即會出現此弱點。(CVE-2022-28739)

請注意,Nessus 並未測試這些問題,而是僅依據應用程式自我報告的版本號碼。

解決方案

執行「yum update ruby」以更新系統。

另請參閱

https://alas.aws.amazon.com/AL2/ALASRUBY3.0-2023-002.html

https://alas.aws.amazon.com/cve/html/CVE-2022-28738.html

https://alas.aws.amazon.com/cve/html/CVE-2022-28739.html

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

Plugin 詳細資訊

嚴重性: Critical

ID: 181966

檔案名稱: al2_ALASRUBY3_0-2023-002.nasl

版本: 1.0

類型: local

代理程式: unix

已發布: 2023/9/27

已更新: 2023/9/27

支援的感應器: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

風險資訊

VPR

風險因素: Medium

分數: 5.9

CVSS v2

風險因素: High

基本分數: 7.5

時間分數: 5.5

媒介: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS 評分資料來源: CVE-2022-28738

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

弱點資訊

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

必要的 KB 項目: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2023/8/21

弱點發布日期: 2022/4/13

參考資訊

CVE: CVE-2022-28738, CVE-2022-28739