CVE-2026-78677
GitPython before 3.1.59 Path Traversal via separate-git-dir
HIGH 8.7EPSS 0.7%
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.
- Affected
- gitpython-developers · GitPython
- CVSS v4.0 VULNCHECK
- 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS v4.0 GitHub
- 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS v3.1 VULNCHECK
- 7.5 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - EPSS
- 0.65% chance of exploitation in the next 30 days, 50th percentile
- Published
- 2026-08-25
- Updated
- 2026-10-08
Proof-of-concept exploits (1)
Security advisories
- gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc
- https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir