Vulnerability · Published Aug 25, 2026 · Assigned by VulnCheck

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

High 7.5

In plain English

A high-severity path traversal in GitPython from gitpython-developers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.7%top 48.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24py3-gitpython3.1.61-r0ALPINE-CVE-2026-78677
Debian:12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-78677
Debian:13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-78677
Debian:14python-git3.1.61-1DEBIAN-CVE-2026-78677
PyPIgitpython3.1.59GHSA-8mcc-hrx5-hvxc
PyPIgitpython3.1.59PYSEC-2026-3787

Affected products (as reported)

VendorProductVersions
gitpython-developers GitPython 0 – before 3.1.59

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References