Debian DSA-5067-1:ruby2.7 - 安全性更新

critical Nessus Plugin ID 157380

概要

遠端 Debian 主機上缺少一個或多個安全性更新。

說明

遠端 Debian 11 主機上安裝的多個套件受到 dsa-5067 公告中提及的多個弱點影響。

- CGI: : Cookie.parse (適用 Ruby 2.6.8 及更早版本) 無法正確處理 Cookie 名稱中的安全性前置詞。這也會影響 Ruby 0.3.0 及更早版本中的 CGI gem。(CVE-2021-41819)

- 在早於 2.7.5 的 Ruby 版本和 3.x 之前的 Ruby 3.0.3 版本中,CGI.escape_html 可透過 size_t 和 long 具有不同位元組數的平台 (例如 Windows) 上的長字串引發整數溢位弱點,並由此造成緩衝區溢位問題。這也會影響 Ruby 0.3.1 更早版本中的 CGI gem。(CVE-2021-41816)

- Ruby 3.2.0 及更早版本的 date gem 中的 Date.parse 允許透過長字串造成 ReDoS (規則運算式拒絕服務)。修正後的版本是 3.2.1、3.1.2、3.0.2 和 2.0.1。(CVE-2021-41817)

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

解決方案

升級 ruby2.7 套件。

針對穩定的發行版本 (bullseye),已在 2.7.4-1+deb11u1 版本中修正這些問題。

另請參閱

https://security-tracker.debian.org/tracker/source-package/ruby2.7

https://www.debian.org/security/2022/dsa-5067

https://security-tracker.debian.org/tracker/CVE-2021-41816

https://security-tracker.debian.org/tracker/CVE-2021-41817

https://security-tracker.debian.org/tracker/CVE-2021-41819

https://packages.debian.org/source/bullseye/ruby2.7

Plugin 詳細資訊

嚴重性: Critical

ID: 157380

檔案名稱: debian_DSA-5067.nasl

版本: 1.5

類型: local

代理程式: unix

已發布: 2022/2/4

已更新: 2023/11/17

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: High

基本分數: 7.5

時間分數: 5.9

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

CVSS 評分資料來源: CVE-2021-41816

CVSS v3

風險因素: Critical

基本分數: 9.8

時間分數: 8.8

媒介: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

時間媒介: CVSS:3.0/E:P/RL:O/RC:C

弱點資訊

CPE: p-cpe:/a:debian:debian_linux:libruby2.7, p-cpe:/a:debian:debian_linux:ruby2.7, p-cpe:/a:debian:debian_linux:ruby2.7-dev, p-cpe:/a:debian:debian_linux:ruby2.7-doc, cpe:/o:debian:debian_linux:11.0

必要的 KB 項目: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2022/2/3

弱點發布日期: 2022/1/1

參考資訊

CVE: CVE-2021-41816, CVE-2021-41817, CVE-2021-41819