CVE-2026-78677
published high CVSS 4.0 · 8.7GitPython before 3.1.59 Path Traversal via separate-git-dir
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gitpython-developers | — | GitPython0 to < 3.1.59 (affected · semver) · 3.1.59 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| Alpine Linux | edge | py3-gitpython | Fixed | 3.1.61-r0 | Package fix record |
| Debian | bookworm | python-git | Advisory build | 3.1.30-1+deb12u3 | DLA-4872-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| Alpine Linux | v3.24 | py3-gitpython | Fixed | 3.1.61-r0 | Package fix record |
| Debian | trixie | python-git | Advisory build | 3.1.44-1+deb13u1 | DSA-6594-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-GitPythonnoarch | Advisory build | 3.1.44-160000.4.1 | OPENSUSE-SU-2026:21874-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gitpython-developers | GitPython | 0 to < 3.1.59 (affected · semver)3.1.59 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2- GitHub Security Advisory (GHSA-8mcc-hrx5-hvxc) https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc
- VulnCheck Advisory: GitPython before 3.1.59 Path Traversal via separate-git-dir https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir
Provider assertions
2VulnCheck · cna
GitPython before 3.1.59 Path Traversal via separate-git-dir
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1ca47c253c819c65d5c748034ad828b5afe01fb48f02bf65bf121e7fdd87552b
- Ingested
- 09 Oct 2026, 16:37:07 UTC
- Source record
- Official CVE record