High severity7.5NVD Advisory· Published Aug 25, 2026· Updated Sep 2, 2026
CVE-2026-78677
CVE-2026-78677
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
GitPythonPyPI | < 3.1.59 | 3.1.59 |
Affected products
2- Range: <3.1.59
Patches
Vulnerability mechanics
References
8- github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxcnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-8mcc-hrx5-hvxcghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-78677ghsaADVISORY
- www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dirnvdThird Party AdvisoryWEB
- github.com/gitpython-developers/GitPython/commit/b68afff45af0f49e79a3e2d2162018986b37ad5dghsaWEB
- github.com/gitpython-developers/GitPython/pull/2210ghsaWEB
- github.com/gitpython-developers/GitPython/releases/tag/3.1.59ghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3787.yamlghsaWEB
News mentions
1- Gitpython: Five Vulnerabilities Including Critical Flaw Disclosed TogetherVypr Intelligence · Aug 25, 2026