Skip to content
OpenAdvisories
High · 7.5 CVE-2026-78677 EUVD-2026-65223GHSA-7r39-6q8m-qw68GHSA-8mcc-hrx5-hvxcPYSEC-2026-3787

GitPython before 3.1.59 Path Traversal via separate-git-dir

Published Aug 25, 2026 · Updated Oct 8, 2026 · 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.

Affected products

VendorProductAffectedFixed
gitpython-developers GitPython < 3.1.59 3.1.59

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-git 3.1.61-1 —
Debian 13 python-git 3.1.44-1+deb13u1 —
Debian 12 python-git 3.1.30-1+deb12u3 —
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform Developer 2 automation-controller-cli 4.6.32-1.el8ap RHSA-2026:59136, RHSA-2026:59135
Red Hat Ansible Automation Platform Developer 2 python-django +1 5.2.17-1.el10ap RHSA-2026:59136
Red Hat Ansible Automation Platform Developer 2 python3.12-django 5.2.17-1.el8ap RHSA-2026:59136, RHSA-2026:59135
Red Hat Ansible Automation Platform 2 automation-controller-cli +1 4.6.32-1.el8ap RHSA-2026:59136, RHSA-2026:59135
Red Hat Ansible Automation Platform 2 automation-gateway-server 2.5.20260824-1.el8ap RHSA-2026:59135
Red Hat Ansible Automation Platform 2 automation-platform-ui 2.6.13-1.el9ap RHSA-2026:59136
Red Hat Ansible Automation Platform 2 python-django +1 5.2.17-1.el10ap RHSA-2026:59136
Red Hat Ansible Automation Platform 2 python3.12-aiohttp 3.14.3-1.el8ap RHSA-2026:59136, RHSA-2026:59135
Red Hat Ansible Automation Platform 2 python3.12-django 5.2.17-1.el8ap RHSA-2026:59136, RHSA-2026:59135
Red Hat Ansible Automation Platform 2 python3.12-gitpython 3.1.59-1.el8ap RHSA-2026:59136, RHSA-2026:59135
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES 3 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP6 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES for SAP 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES for SAP 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLE HPC 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLE HPC 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 python-GitPython 3.1.44-160000.4.1 openSUSE-SU-2026:21874-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-gitpython 3.1.61-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI gitpython < 3.1.59 3.1.59 GHSA-8mcc-hrx5-hvxc

Advisories 4

References