CVE-2026-78677
GitPython before 3.1.59 omits --separate-git-dir from …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc
- www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir
- nvd.nist.gov/vuln/detail/CVE-2026-78677
- github.com/gitpython-developers/GitPython/pull/2210
- github.com/gitpython-developers/GitPython/commit/b68afff45af0f49e79a3e2d2162018986b37ad5d
- github.com/gitpython-developers/GitPython/releases/tag/3.1.59
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3787.yaml
- github.com/advisories/GHSA-8mcc-hrx5-hvxc
- nvd.nist.gov/vuln/detail/CVE-2026-78677
- cve.org/CVERecord?id=CVE-2026-78677
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.