CVE-2026-42215
GitPython has Command Injection via Git options bypass
8.8
HIGH
CVSS 3.1
EPSS 0.72%
描述
GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.
如何修補 CVE-2026-42215
要修補 CVE-2026-42215,請將受影響套件升級到下列已修補版本。
- —升級至 3.1.47 或更新版本
- —升級至 3.1.47 或更新版本
CVE-2026-42215 正在被利用嗎?
低 — EPSS 為 0.7%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- >= 3.1.30, < 3.1.47
- >= 3.1.30, < 3.1.47
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |