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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.1.59 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-25 · Modified: 2026-10-08
- Aliases: GHSA-8mcc-hrx5-hvxc, PYSEC-2026-3787, DEBIAN-CVE-2026-78677, CGA-j768-w739-jhr6, ALPINE-CVE-2026-78677
- Record: https://cvemate.com/vulnerability/CVE-2026-78677 · JSON: https://cvemate.com/vulnerability/CVE-2026-78677/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.506%, percentile 44.819%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine py3-gitpython (Alpine Linux): \< 3.1.61-r0
- chainguard mlflow (Chainguard): \< 3.16.0-r0
- wolfi mlflow (Wolfi): \< 3.16.0-r0
- debian python-git (Debian): All versions (No fix recorded) \| \< 3.1.30-1+deb12u3 \| \< 3.1.44-1+deb13u1 \| \< 3.1.61-1
- gitpython\_project gitpython: \< 3.1.59
- gitpython-developers gitpython: \< 3.1.59
- PyPI gitpython (PyPI): \< 3.1.59

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc>
- <https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-78677>
- <https://github.com/gitpython-developers/GitPython/pull/2210>
- <https://github.com/gitpython-developers/GitPython/commit/b68afff45af0f49e79a3e2d2162018986b37ad5d>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.59>
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3787.yaml>
- <https://security-tracker.debian.org/tracker/CVE-2026-78677>
- <https://security.alpinelinux.org/vuln/CVE-2026-78677>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78677.json>

---

Data as of 2026-12-05T04:46:56.698Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
