CVE-2026-78677
Publication date 25 August 2026
Last updated 26 August 2026
Ubuntu priority
Description
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.
References
Other references
- https://www.cve.org/CVERecord?id=CVE-2026-78677
- https://github.com/cveproject/cvelistv5/tree/main/cves/2026/78xxx/cve-2026-78677.json
- https://github.com/gitpython-developers/gitpython/security/advisories/ghsa-8mcc-hrx5-hvxc
- https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir