# CVE-2026-78677: GitPython before 3.1.59 Path Traversal via separate-git-dir

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-25T01:30:34.719Z
- Modified: 2026-10-12T15:10:00.207Z
- Also known as: GHSA-8mcc-hrx5-hvxc, PYSEC-2026-3787
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: before 3.1.59 (not affected: 3.1.59)
- gitpython (PyPI): before 3.1.59
- gitpython_project gitpython: before 3.1.59

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc> (exploit, evidence, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir> (advisory, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2026-78677](https://www.cve.org/CVERecord?id=CVE-2026-78677), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-8mcc-hrx5-hvxc](https://github.com/advisories/GHSA-8mcc-hrx5-hvxc), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-78677](https://nvd.nist.gov/vuln/detail/CVE-2026-78677), Public domain, modified 2026-10-12
- PyPA Advisory Database: [PYSEC-2026-3787](https://osv.dev/vulnerability/PYSEC-2026-3787), CC-BY-4.0, modified 2026-09-03

---

Page: https://cve.day/CVE-2026-78677 · Whole record: https://cve.day/CVE-2026-78677.json · Rebuilt by cve.day 2026-11-25T22:59:35.100Z
