Skip to content
Fencer Intel
high 7.5

CVE-2026-78677 json

GitPython before 3.1.59 Path Traversal via separate-git-dir

published 3mo ago modified 30d ago also EUVD-2026-65223 , GHSA-8mcc-hrx5-hvxc , PYSEC-2026-3787

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 51%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi gitpython 3.1.59
  • gitpython-developers GitPython 3.1.59
  • python-git Debian 12 3.1.30-1+deb12u3
  • python-git Debian 13 3.1.44-1+deb13u1
  • python-git Debian 14 3.1.61-1

debian advisories DEBIAN-CVE-2026-78677

  • python3.12-django ansible automation platform developer 2.5, ansible automation platform 2.5 5.2.17-1.el8ap
  • python3.12-django ansible automation platform developer 2.6, ansible automation platform developer 2.5, ansible automation platform 2.6 +1 more 5.2.17-1.el9ap
  • python3.12-aiohttp ansible automation platform 2.5 3.14.3-1.el8ap
  • python3.12-aiohttp ansible automation platform 2.6, ansible automation platform 2.5 3.14.3-1.el9ap
  • python3.12-gitpython ansible automation platform 2.5 3.1.59-1.el8ap
  • python3.12-gitpython ansible automation platform 2.6, ansible automation platform 2.5 3.1.59-1.el9ap
  • automation-controller-cli ansible automation platform developer 2.5, ansible automation platform 2.5 4.6.32-1.el8ap
  • automation-controller-cli ansible automation platform developer 2.5, ansible automation platform 2.5 4.6.32-1.el9ap

red hat advisories RHSA-2026:59135RHSA-2026:59136

  • python-GitPython SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 3.1.34.1693646983.2a2ae77-150400.9.8.1

suse advisories SUSE-SU-2026:4072-1

  • python-GitPython openSUSE Leap 16.0 3.1.44-160000.4.1

opensuse advisories openSUSE-SU-2026:21874-1

  • py3-gitpython Alpine 3.24 3.1.61-r0

alpine advisories ALPINE-CVE-2026-78677

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2026-78677 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-78677 updated cvss 7.5

GitPython: GitPython: Arbitrary Code Execution via Path Traversal

  • Red Hat Exploit Intelligence exploit-intelligence/vulnerability-analysis-rhel9
    affected: workaround, no fix available
  • Red Hat AI Inference Server rhaiis/vllm-cpu-rhel9, rhaiis/vllm-tpu-rhel9
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Ansible Automation Platform 2 automation-controller, ansible-automation-platform-25/hub-rhel8, ansible-automation-platform-26/hub-rhel9, ansible-automation-platform-27/hub-rhel9, ansible-automation-platform-24/controller-rhel8 Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/disk-image-cuda-rhel9
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-th06-cpu-torch291-py312-rhel9, rhoai/odh-th06-cuda130-torch291-py312-rhel9 Red Hat OpenStack Platform 16.2 rhosp-rhel8/openstack-mistral-api, rhosp-rhel8/openstack-mistral-base, rhosp-rhel8/openstack-tripleoclient, rhosp-rhel8/openstack-mistral-engine, rhosp-rhel8/openstack-nova-scheduler, rhosp-rhel8/openstack-mistral-executor, +1 more Red Hat OpenStack Platform 17.1 rhosp-rhel9/openstack-tripleoclient
    affected: workaround, no fix available
  • Red Hat Ansible Automation Platform 2.5 for RHEL 8 python3.12-gitpython 3.1.59-1.el8ap Red Hat Ansible Automation Platform 2.5 for RHEL 9 python3.12-gitpython 3.1.59-1.el9ap
    fixed: vendor fix RHSA-2026:59135
  • Red Hat Ansible Automation Platform 2.6 for RHEL 9 python3.12-gitpython 3.1.59-1.el9ap
    fixed: vendor fix RHSA-2026:59136
  • Red Hat OpenShift AI 2.25 rhoai/odh-feature-server-rhel9 1792148523
    fixed: vendor fix RHSA-2026:87410
  • Red Hat OpenShift AI 3.4 rhoai/odh-mlflow-rhel9 1791865967, rhoai/odh-feature-server-rhel9 1791863220, rhoai/odh-th06-cpu-torch210-py312-rhel9 1791874335, rhoai/odh-th06-rocm64-torch291-py312-rhel9 1791872119, rhoai/odh-th06-cuda130-torch210-py312-rhel9 1791961113, rhoai/odh-training-cuda128-torch29-py312-rhel9 1791786619, +1 more
    fixed: vendor fix RHSA-2026:84734
show 9 more
  • Red Hat OpenShift AI 3.5 rhoai/odh-th-torch-cpu-py312-rhel9 1791926611, rhoai/odh-th-torch-cuda-py312-rhel9 1791927642, rhoai/odh-th-torch-rocm-py312-rhel9 1791925861, rhoai/odh-training-cuda128-torch29-py312-rhel9 1791927231, rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9 1791816462, rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9 1791951049, +15 more
    fixed: vendor fix RHSA-2026:86891
  • Red Hat Satellite 6.17 for RHEL 9 python-gitpython 3.2.1-1.el9pc, python3.11-gitpython 3.2.1-1.el9pc
    fixed: vendor fix RHSA-2026:95656
  • Red Hat Satellite 6.18 satellite/iop-vmaas-rhel9 1791336955, satellite/iop-vulnerability-engine-rhel9 1791340412
    fixed: vendor fix RHSA-2026:79376
  • Red Hat Satellite 6.18 for RHEL 9 python3.12-gitpython 3.2.1-1.el9pc
    fixed: vendor fix RHSA-2026:95657
  • Red Hat Satellite 6.19 satellite/iop-vmaas-rhel9 1790820070, satellite/iop-vulnerability-engine-rhel9 1791341368
    fixed: vendor fix RHSA-2026:79372
  • Red Hat Satellite 6.19 for RHEL 9 python3.12-gitpython 3.2.1-1.el9pc
    fixed: vendor fix RHSA-2026:92861
  • Red Hat Migration Toolkit for Applications 8 mta/mta-solution-server-rhel9 Red Hat Ansible Automation Platform 2 python-gitpython, python3x-gitpython, python3.11-gitpython, ansible-automation-platform-24/hub-rhel8, ansible-automation-platform-25/controller-rhel8, ansible-automation-platform-26/controller-rhel9, +1 more Red Hat Ansible Automation Platform 2.5 for RHEL 8 automation-hub 4.10.18-1.el8ap, python3.12-django 5.2.17-1.el8ap, python3.12-aiohttp 3.14.3-1.el8ap, automation-controller 4.6.32-1.el8ap, python3.12-galaxy-ng 4.10.18-1.el8ap, automation-controller-ui 4.6.32-1.el8ap, +11 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 automation-hub 4.10.18-1.el9ap, python3.12-django 5.2.17-1.el9ap, python3.12-aiohttp 3.14.3-1.el9ap, automation-controller 4.6.32-1.el9ap, python3.12-galaxy-ng 4.10.18-1.el9ap, automation-controller-ui 4.6.32-1.el9ap, +11 more Red Hat Ansible Automation Platform 2.6 for RHEL 9 molecule 26.8.0-1.el9ap, ansible-lint 26.8.0-1.el9ap, python3.12-nh3 0.3.6-1.el9ap, ansible-creator 26.8.0-1.el9ap, automation-hub 4.11.13-1.el9ap, ansible-dev-tools 26.8.0-1.el9ap, +37 more Red Hat Ansible Automation Platform 2.6 for RHEL 10 molecule 26.8.0-1.el10ap, ansible-lint 26.8.0-1.el10ap, python-django 5.2.17-1.el10ap, python3-django 5.2.17-1.el10ap, ansible-creator 26.8.0-1.el10ap, ansible-dev-tools 26.8.0-1.el10ap, +7 more
    not affected: vulnerable code not present
  • Red Hat Hardened Images rust, llvm21, swift-lang
    not affected: component not present
  • Red Hat OpenShift AI 2.25 rhoai/odh-rhel9-operator 1792570619, rhoai/odh-vllm-cpu-rhel9 1792018436, rhoai/odh-dashboard-rhel9 1791853525, rhoai/odh-modelmesh-rhel9 1790881700, rhoai/odh-operator-bundle 1792571069, rhoai/odh-vllm-cuda-rhel9 1791358976, +65 more Red Hat OpenShift AI 3.4 rhoai/odh-cli-rhel9 1791509689, rhoai/rhai-cli-rhel9 1791509689, rhoai/odh-automl-rhel9 1791535789, rhoai/odh-autorag-rhel9 1791557539, rhoai/odh-trainer-rhel9 1791869783, rhoai/odh-eval-hub-rhel9 1791852583, +93 more Red Hat OpenShift AI 3.5 rhoai/odh-cli-rhel9 1791945905, rhoai/rhai-cli-rhel9 1791945905, rhoai/odh-automl-rhel9 1791916705, rhoai/odh-mlflow-rhel9 1791947857, rhoai/odh-autorag-rhel9 1791903266, rhoai/odh-trainer-rhel9 1791952138, +92 more Red Hat OpenStack Platform 13 (Queens) GitPython Red Hat OpenStack Platform 16.2 python3-GitPython Red Hat OpenStack Platform 17.1 GitPython, python3-GitPython
    +3 more products
    Red Hat Satellite 6.17 for RHEL 9 python-brotli 1.2.1-1.el9pc, python-django 4.2.30-2.el9pc, python-pillow 13.0.0-1.el9pc, python-urllib3 2.8.0-1.el9pc, openvox-agent 8.32.0-1.el9sat, openvox-server 8.18.0-1.el9sat, +6 more Red Hat Satellite 6.18 for RHEL 9 openvox-agent 8.32.0-1.el9sat, openvox-server 8.18.0-1.el9sat, python3.12-brotli 1.2.1-1.el9pc, python3.12-django 4.2.30-3.el9pc, python3.12-pillow 13.0.0-1.el9pc, python3.12-urllib3 2.8.0-1.el9pc, +2 more Red Hat Satellite 6.19 for RHEL 9 openvox-agent 8.31.1-1.el9sat, openvox-server 8.17.0-1.el9sat, python3.12-brotli 1.2.1-1.el9pc, python3.12-django 4.2.30-3.el9pc, python3.12-pillow 13.0.0-1.el9pc, python3.12-urllib3 2.8.0-1.el9pc, +2 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
2mo ago

Exploit prediction

0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-11).

Exploits and checks

  • github.com https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 4.0 8.7 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
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CNA 4.0 8.7 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

Affected packages

ecosystem package affected fixed in
pypi gitpython
<3.1.59
3.1.59

Affected products

  • gitpython-developers GitPython

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
  • CWE-73 External Control of File Name or Path

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

The maintainers of gitpython-developers/GitPython published their own advisory on GitHub. Reviewed sources take precedence over it.