Debian DLA-4872:python-git-doc - 安全更新

critical Nessus 插件 ID 374599

简介

远程 Debian 主机上缺少一个或多个与安全性相关的更新。

描述

远程 Debian 12 主机上存在安装的程序包,该程序包受到 DLA-4872 公告中提及的多个漏洞的影响。

------------------------------------------------------------------------- Debian LTS 公告 [email protected] DLA-4872-1https://www.debian.org/lts/security/Emmanuel arias 2026 年 10 月 31 日 https://wiki.debian.org/LTS-------------------------------------------------------------------------

程序包:python-git 版本:3.1.30-1+deb12u3 CVE ID: CVE-2026-42215 CVE-2026-42284 CVE-2026-44243 CVE-2026-44244 CVE-2026-67322 CVE-2026-67323 CVE-2026-67324 CVE-2026-67325 CVE-2026-67326 CVE-2026-69097 CVE-2026-73619 CVE-2026-73620 CVE-2026-73621 CVE-2026-73622 CVE-2026-73623 CVE-2026-73624 CVE-2026-73625 CVE-2026-76217 CVE-2026-76218 CVE-2026-76219 CVE-2026-76220 CVE-2026-76221 CVE-2026-76222 CVE-2026-78675 CVE-2026-78676 CVE-2026-78677 CVE-2026-78678 CVE-2026-78679 CVE-2026-87817 CVE-2026-87818 CVE-2026-87819 CVE-2026-100689 CVE-2026-110855 CVE-2026-110856 CVE-2026-110857 CVE-2026-110858 CVE-2026-110859 CVE-2026-110860 CVE-2026-114145 Debian 缺陷:1135349 1135350 1143454 1143602 1144344 1144929

在用于与 git 存储库交互的 Python 库 python-git (GitPython) 中发现多个安全漏洞。
这些问题可导致执行任意命令、通过任意文件读取或写入进行路径遍历、git config 注入、通过环境变量扩展或拒绝服务 (ReDoS) 泄漏密码。

CVE-2026-42215

作为带下划线的关键字参数传递的不安全选项不会遭到阻断,这可导致命令执行。

CVE-2026-42284

通过 shlex 拆分 multi_options 之后未检查不安全的选项,这可导致命令执行。

CVE-2026-44243

操纵引用时,未阻止对存储库外部文件的访问,从而允许任意文件访问。

CVE-2026-44244

配置编写器未拒绝配置值中的控制字符,从而允许配置注入。

CVE-2026-67322

克隆 URL 中的环境变量已扩展,可将密码泄漏至远程主机。

CVE-2026-67323

存档、提取、拉取、推送、ls-remote、blame 和修订 API 中未保护不安全的选项 (--exec、 --upload-pack、...),这可导致命令执行。

CVE-2026-67324

缩写长选项绕过不安全的选项检查,从而导致命令执行。

CVE-2026-67325

加入的短选项绕过了不安全的选项检查,从而导致命令执行。

CVE-2026-67326

写入前未验证 Config 部分名称,从而允许 config 注入。

CVE-2026-69097

包含无引号右括号的 Config 区段名称可将任意设置注入 .git/config。

CVE-2026-73619

--add-file不安全的选项列表中缺少 、 --add-virtual-file (存档)和--bundle-uri(克隆)选项,这可导致命令执行或任意文件访问。

CVE-2026-73620

IndexFile.checkout() () 和--prefix TagReference.create() (-F/--file) 中的不安全选项未遭到阻断,可能会写入任意文件系统路径或从中读取。

CVE-2026-73621

未拒绝 Commit.count 中不安全的输出选项,可能写入任意文件系统路径。

CVE-2026-73622

远程和子模块 URL 中的环境变量已扩展,从而可将机密泄漏至远程主机。

CVE-2026-73623

克隆时不拒绝不安全的 --template 选项,这可从任意文件系统路径读取。

CVE-2026-73624

diff 操作中未保护不安全的输出选项,这可写入任意文件系统路径。

CVE-2026-73625

拆分的短选项的值未经过验证,这可绕过克隆、远程、修订、责备和存档操作中不安全的选项检查。

CVE-2026-76217

IndexFile.remove、Head.checkout 和 HEAD.reset 中未保护这些 --pathspec-from-file 选项,可从任意文件系统路径读取。

CVE-2026-76218

Repo.init 中未保护不安全的 git init 选项 (--template, --separate-git-dir),可能读取或写入任意文件系统路径。

CVE-2026-76219

from_tree、merge_tree 和 reset 发出的 read-tree 调用中未保护该 --index-output 选项,可写入任意路径。

CVE-2026-76220

当 split_single_char_options 为 false 时,未检查与单字符选项结合的值,这可绕过不安全的选项检查。

CVE-2026-76221

包含可在写入配置时注入任意设置的字符的配置选项名称不会被拒绝。

CVE-2026-76222

在文件系统操作之前,未验证从 .gitmodules 读取的子模块名称,从而允许在存储库外部进行路径遍历。

CVE-2026-78675

已处理 .gitmodules 中的 Include 指令,其可读取任意文件。

CVE-2026-78676

写入时未保留多行配置值,这可向配置中注入新选项。

CVE-2026-78677

--separate-git-dir该选项未在 Repo.clone() 和 Repo.clone_from() 中阻断,可能向任意路径写入存储库元数据。

CVE-2026-78678, CVE-2026-78679

blame、diff 和tag API 中未阻断文件读取选项,可读取任意文件。

CVE-2026-87817

存储库发现既不偏好 .git 条目,也不验证候选 git 目录,这与 git 的行为不同。

CVE-2026-87818

该 --no-index 选项不被视为不安全的 diff 选项,从而允许对任意文件系统路径进行 diff。

CVE-2026-87819

使用正则表达式解析参与者身份,从而允许对畸形身份进行二次回溯 (ReDoS)。

CVE-2026-100689

与 add 和 move 不同,在存储库外部或通过符号链接解析的子模块检出路径在 Submodule.update 中不会遭到拒绝。

CVE-2026-110855

当克隆时,separate_git_dir路径中的环境变量会扩展,因此存储库元数据可能会写入到异常位置。

CVE-2026-110856

提交作者、提交者和标记者中的参与者身份和日期使用回溯正则表达式进行解析,从而允许畸形元数据上过量使用 CPU (ReDoS)。

CVE-2026-110857

Git.ls_remote()、Repo.merge_base() 和 IndexFile.move() 中的不安全选项和协议检查不完整,忽略了兄弟 API 已使用的防护。

CVE-2026-110858

在 Remote.update() 中未拒绝选项形式远程名称,git 转发到在没有 --multiple 选项终止符的情况下提取,从而允许前导破折号名称更改请求的操作。

CVE-2026-110859

未根据 unsafe-option 策略验证 Head.checkout() 传递的位置引用,因此源自克隆存储库的引用名称可绕过该引用。

CVE-2026-110860

遍历中间符号链接的子模块检出、移动和元数据路径在执行文件系统操作之前不会遭到拒绝。

CVE-2026-114145

GitPython 仅在克隆到子模块的“.git”路径后才会验证该路径,这可导致远程代码执行。

对于 Debian 12 bookworm,这些问题已在 3.1.30-1+deb12u3 版本中修复。

我们建议您升级 python-git 程序包。

如需了解 python-git 的详细安全状态,请参阅其安全跟踪页面:
https://security-tracker.debian.org/tracker/python-git

有关 Debian LTS 安全公告、如何将这些更新应用到系统以及常见问题解答的更多信息,请访问以下网址:https://wiki.debian.org/LTSAttachment:signature.ascDescription: PGP signature

Tenable 已直接从 Debian 安全公告中提取上述描述块。

请注意,Nessus 尚未测试这些问题,而是只依据应用程序自我报告的版本号进行判断。

解决方案

升级 python-git-doc 程序包。

另见

https://packages.debian.org/source/bookworm/python-git

https://security-tracker.debian.org/tracker/CVE-2026-100689

https://security-tracker.debian.org/tracker/CVE-2026-110855

https://security-tracker.debian.org/tracker/CVE-2026-110856

https://security-tracker.debian.org/tracker/CVE-2026-110857

https://security-tracker.debian.org/tracker/CVE-2026-110858

https://security-tracker.debian.org/tracker/CVE-2026-110859

https://security-tracker.debian.org/tracker/CVE-2026-110860

https://security-tracker.debian.org/tracker/CVE-2026-114145

https://security-tracker.debian.org/tracker/CVE-2026-42215

https://security-tracker.debian.org/tracker/CVE-2026-42284

https://security-tracker.debian.org/tracker/CVE-2026-44243

https://security-tracker.debian.org/tracker/CVE-2026-44244

https://security-tracker.debian.org/tracker/CVE-2026-67322

https://security-tracker.debian.org/tracker/CVE-2026-67323

https://security-tracker.debian.org/tracker/CVE-2026-67324

https://security-tracker.debian.org/tracker/CVE-2026-67325

https://security-tracker.debian.org/tracker/CVE-2026-67326

https://security-tracker.debian.org/tracker/CVE-2026-69097

https://security-tracker.debian.org/tracker/CVE-2026-73619

https://security-tracker.debian.org/tracker/CVE-2026-73620

https://security-tracker.debian.org/tracker/CVE-2026-73621

https://security-tracker.debian.org/tracker/CVE-2026-73622

https://security-tracker.debian.org/tracker/CVE-2026-73623

https://security-tracker.debian.org/tracker/CVE-2026-73624

https://security-tracker.debian.org/tracker/CVE-2026-73625

https://security-tracker.debian.org/tracker/CVE-2026-76217

https://security-tracker.debian.org/tracker/CVE-2026-76218

https://security-tracker.debian.org/tracker/CVE-2026-76219

https://security-tracker.debian.org/tracker/CVE-2026-76220

https://security-tracker.debian.org/tracker/CVE-2026-76221

https://security-tracker.debian.org/tracker/CVE-2026-76222

https://security-tracker.debian.org/tracker/CVE-2026-78675

https://security-tracker.debian.org/tracker/CVE-2026-78676

https://security-tracker.debian.org/tracker/CVE-2026-78677

https://security-tracker.debian.org/tracker/CVE-2026-78678

https://security-tracker.debian.org/tracker/CVE-2026-78679

https://security-tracker.debian.org/tracker/CVE-2026-87817

https://security-tracker.debian.org/tracker/CVE-2026-87818

https://security-tracker.debian.org/tracker/CVE-2026-87819

https://security-tracker.debian.org/tracker/source-package/python-git

插件详情

严重性: Critical

ID: 374599

文件名: debian_DLA-4872.nasl

版本: 1.1

类型: Local

代理: unix

发布时间: 2026/10/31

最近更新时间: 2026/10/31

支持的传感器: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security, Nessus

风险信息

VPR

风险因素: Medium

分数: 6.9

百分位: 96.58

CVSS v2

风险因素: Critical

基本分数: 10

时间分数: 7.8

矢量: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS 分数来源: CVE-2026-42284

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

CVSS v4

风险因素: Critical

Base Score: 9.3

Threat Score: 8.9

Threat Vector: CVSS:4.0/E:P

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

CVSS 分数来源: CVE-2026-78676

漏洞信息

CPE: cpe:/o:debian:debian_linux:12.0, p-cpe:/a:debian:debian_linux:python-git-doc, p-cpe:/a:debian:debian_linux:python3-git

必需的 KB 项: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

可利用: true

易利用性: Exploits are available

补丁发布日期: 2026/10/31

漏洞发布日期: 2026/4/25

参考资料信息

CVE: CVE-2026-100689, CVE-2026-110855, CVE-2026-110856, CVE-2026-110857, CVE-2026-110858, CVE-2026-110859, CVE-2026-110860, CVE-2026-114145, CVE-2026-42215, CVE-2026-42284, CVE-2026-44243, CVE-2026-44244, CVE-2026-67322, CVE-2026-67323, CVE-2026-67324, CVE-2026-67325, CVE-2026-67326, CVE-2026-69097, CVE-2026-73619, CVE-2026-73620, CVE-2026-73621, CVE-2026-73622, CVE-2026-73623, CVE-2026-73624, CVE-2026-73625, CVE-2026-76217, CVE-2026-76218, CVE-2026-76219, CVE-2026-76220, CVE-2026-76221, CVE-2026-76222, CVE-2026-78675, CVE-2026-78676, CVE-2026-78677, CVE-2026-78678, CVE-2026-78679, CVE-2026-87817, CVE-2026-87818, CVE-2026-87819