AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
GitPythonの3.1.59より前のバージョンには、clone時のseparate-git-dirの扱いに不備があり、想定外の場所に任意のディレクトリを作成されるパストラバーサルの脆弱性(CVE-2026-78677)があります。攻撃者が悪用するとフックの実行につながるおそれもあります。3.1.59以降に更新してください。
GitPythonのクローン作成時のオプション欠如によりディレクトリを制御される脆弱性。
GitPython 3.1.59未満
攻撃者が任意のディレクトリを作成可能であり、フックの実行も可能なため、高い危険性があります。
GitPythonをバージョン3.1.59以降にアップデートしてください。
情報なし
リポジトリのクローン先ディレクトリが意図されない場所に作成されていないか確認する。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pipgitpython |
< 3.1.59→ 3.1.59 |
3.1.59 |
| PyPIgitpython |
< 3.1.59→ 3.1.59 |
3.1.59 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-78677 py3-gitpython Fix available
- Debian DEBIAN-CVE-2026-78677 python-git Fix available
Original description The description as published by the source.
GitPython before 3.1.59 omits --separate-git-dir from unsafe_git_clone_options, allowing attackers to create arbitrary git directories outside the intended clone destination. Attackers can pass a separate_git_dir parameter to Repo.clone_from() or Repo.clone() to redirect repository metadata to an attacker-controlled filesystem path, enabling arbitrary directory creation and potential hook execution.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com