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

medium Nessus 插件 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

插件详情

严重性: Medium

ID: 189084

文件名: redhat-RHSA-2024-0215.nasl

版本: 1.1

类型: local

代理: unix

发布时间: 2024/1/16

最近更新时间: 2024/4/28

支持的传感器: Agentless Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, 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: cpe:/o:redhat:enterprise_linux:9, p-cpe:/a:redhat:enterprise_linux:gitpython, p-cpe:/a:redhat:enterprise_linux:python3-gitpython

必需的 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