CVE Catalog

CVE-2026-78677

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.42%

34th percentile - higher than 34% of all known CVEs

Summary

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.

Risk Assessment

The risk includes the ability to create arbitrary directories on the filesystem and potential execution of malicious git hooks, which could lead to privilege escalation or system integrity compromise.

Recommendation

It is recommended to upgrade GitPython to version 3.1.59 or later and avoid passing untrusted parameters to clone functions.

Other vulnerabilities in GitPython

See all
Original NVD description (English 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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS