CVE-2026-78677
HIGH 8.7CVSS 4.0GitPython: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destination
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.
- Published
- 25 Aug 2026
- Last modified
- 12 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-73
- Also known as
- GHSA-8mcc-hrx5-hvxcPYSEC-2026-3787
- Sources
- NVDJSONOSV GHSA-8mcc-hrx5-hvxcJSONOSV PYSEC-2026-3787JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitpython_project | gitpythoncpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* |
< 3.1.59 | 3.1.59 |
| OSV | PyPI | gitpython | < 3.1.59 | 3.1.59 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-78677 · ADVISORY
- https://github.com/gitpython-developers/GitPython/pull/2210 · WEB
- https://github.com/gitpython-developers/GitPython/commit/b68afff45af0f49e79a3e2d2162018986b37ad5d · WEB
- https://github.com/gitpython-developers/GitPython · PACKAGE
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.59 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3787.yaml · WEB
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 25 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Aug 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Sep 2026)