CVE-2026-42284
GitPython: Unsafe option check validates multi_options before shlex.split transformation
8.1
HIGH
CVSS 3.1
EPSS 0.57%
描述
GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.
如何修補 CVE-2026-42284
要修補 CVE-2026-42284,請將受影響套件升級到下列已修補版本。
- —升級至 3.1.47 或更新版本
- —升級至 3.1.47 或更新版本
CVE-2026-42284 正在被利用嗎?
低 — EPSS 為 0.6%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- from 0, < 3.1.47
- from 0, < 3.1.47
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |