Debian dla-4872 : python-git-doc - 安全性更新

critical Nessus Plugin ID 374599

概要

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

說明

遠端 Debian 12 主機已安裝的套件會受到 dla-4872 公告中提及的多個弱點影響。

------------------------------------------------------------------------- Debian LTS 公告 DLA-4872-1 [email protected] https://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

在 python-git (GitPython) 中發現多個安全漏洞,python-git 是一個用於與 git 存儲庫交互的 Python 庫。
這些問題可能會導致任意命令執行、使用任意檔案讀取或寫入進行路徑遊走、git 配置插入、透過環境變數擴充或拒絕服務 (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

組態區段名稱在寫入前未經過驗證,因此可以插入組態。

CVE-2026-69097

包含無引號右括號的組態區段名稱可能會將任意設定插入 .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

複製時不會拒絕 unsafe --template 選項,因為該選項可以從任意檔案系統路徑讀取。

CVE-2026-73624

不安全的輸出選項在差異作業中沒有受到保護,因為這些選項可能會寫入任意檔案系統路徑。

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

--index-output在 from_tree、merge_tree 和 reset 進行的讀取樹狀結構呼叫中,該選項不受保護,這可能會寫入任意路徑。

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 中沒有封鎖檔案讀取選項,因為這些 API 可以讀取任意檔案。

CVE-2026-87817

存放庫發現不偏好 .git 項目,也不驗證候選 git 目錄,這與 git 的行為不同。

CVE-2026-87818

此 --no-index 選項未被視為不安全的差異選項,這允許差異任意檔案系統路徑。

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

Head.checkout() 傳遞的位置參照並未根據 unsafe-option 原則進行驗證,因此源自複製存放庫的參照名稱可能會繞過它。

CVE-2026-110860

在執行檔案系統作業之前,周遊中間符號連結的子模組簽出、移動和中繼資料路徑不會遭到拒絕。

CVE-2026-114145

GitPython 僅在複製子模組後才驗證子模組的「.git」路徑,這可能會導致遠端程式碼執行。

對於 Debian 12 書蟲,這些問題已在 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 簽章

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

Plugin 詳細資訊

嚴重性: 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