Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Gitpython Project | Gitpython | < 3.1.59 |
Related Weaknesses (CWE)
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-ExploitVendor Advisory
- https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separatThird Party Advisory
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-ExploitVendor Advisory
FAQ
What is CVE-2026-78677?
CVE-2026-78677 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 sepa...
How severe is CVE-2026-78677?
CVE-2026-78677 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-78677?
Check the references section above for vendor advisories and patch information. Affected products include: Gitpython Project Gitpython.