Skip to content

Path Traversal in gitpython

CVE-2026-78677 First seen on SecPulse

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以降に更新してください。

What is the problem

GitPythonのクローン作成時のオプション欠如によりディレクトリを制御される脆弱性。

Affected scope

GitPython 3.1.59未満

Severity

攻撃者が任意のディレクトリを作成可能であり、フックの実行も可能なため、高い危険性があります。

How to fix

GitPythonをバージョン3.1.59以降にアップデートしてください。

Workaround

情報なし

Detection

リポジトリのクローン先ディレクトリが意図されない場所に作成されていないか確認する。

Affected packages

PackageAffected → Fixed
pipgitpython
< 3.1.59→ 3.1.59
PyPIgitpython
< 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details