RHEL 9:Red Hat OpenStack Platform 17.1 (GitPython) (RHSA-2024: 0215)

medium Nessus Plugin ID 189084

概要

遠端 Red Hat 主機缺少安全性更新。

說明

遠端 Redhat Enterprise Linux 9 主機上安裝的套件受到 RHSA-2024: 0215 公告中提及的弱點影響。

- GitPython 是用來與 Git 存放庫互動的 python 程式庫。為了解決某些 git 參照問題,GitPython 會從「.git」目錄讀取檔案,在某些情況下,讀取的檔案名稱是由使用者提供,GitPython 不會檢查此檔案是否位於「.git」目錄之外的目錄。這會允許攻擊者使 GitPython 從系統讀取任何檔案。此弱點存在於 https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174 至 L175 版中。該程式碼會以使用者指定的字串加入基本目錄,而不檢查最終路徑是否位於基本目錄之外。此弱點無法用來讀取檔案內容,但理論上可用來觸發程式的拒絕服務。此問題尚未解決。
(CVE-2023-41040)

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

解決方案

更新受影響的 python3-GitPython 套件。

另請參閱

http://www.nessus.org/u?676efa7f

https://access.redhat.com/security/updates/classification/#moderate

https://bugzilla.redhat.com/show_bug.cgi?id=2247040

https://access.redhat.com/errata/RHSA-2024:0215

Plugin 詳細資訊

嚴重性: Medium

ID: 189084

檔案名稱: redhat-RHSA-2024-0215.nasl

版本: 1.2

類型: local

代理程式: unix

已發布: 2024/1/16

已更新: 2024/6/3

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

風險資訊

VPR

風險因素: Low

分數: 3.3

CVSS v2

風險因素: Medium

基本分數: 6.4

時間分數: 5

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

CVSS 評分資料來源: CVE-2023-41040

CVSS v3

風險因素: Medium

基本分數: 6.5

時間分數: 5.9

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

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

弱點資訊

CPE: p-cpe:/a:redhat:enterprise_linux:python3-gitpython, p-cpe:/a:redhat:enterprise_linux:gitpython, cpe:/o:redhat:enterprise_linux:9

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2024/1/16

弱點發布日期: 2023/8/26

參考資訊

CVE: CVE-2023-41040

CWE: 22

RHSA: 2024:0215