CVSS 4.0
8.7 highCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NHigh (8.7) in gitpython project gitpython. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in gitpython 3.1.59.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:Ngitpython (PyPI): fixed in 3.1.59Explain CVE-2026-78677 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-78677?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-78677?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-78677 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| gitpython-developers GitPython | before 3.1.59 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-8mcc-hrx5-hvxc | PyPI | gitpython | <3.1.59 | 3.1.59 |
| PYSEC-2026-3787 | PyPI | gitpython | <3.1.59 | 3.1.59 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | python-git | 3.1.30-1+deb12u3 | DEBIAN-CVE-2026-78677 |
| Debian | 13 | python-git | 3.1.44-1+deb13u1 | DEBIAN-CVE-2026-78677 |
| Debian | 14 | python-git | 3.1.61-1 | DEBIAN-CVE-2026-78677 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-controller-cli, automation-controller-venv-tower | 0:4.6.32-1.el8ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-gateway-server | 0:2.5.20260824-1.el8ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-aiohttp | 0:3.14.3-1.el8ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-gitpython | 0:3.1.59-1.el8ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8 | python3.12-django | 0:5.2.17-1.el8ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-controller-cli, automation-controller-venv-tower | 0:4.6.32-1.el9ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-gateway-server | 0:2.5.20260824-1.el9ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.5::el9 | python3.12-aiohttp | 0:3.14.3-1.el9ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.5::el9 | python3.12-gitpython | 0:3.1.59-1.el9ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9 | python3.12-django | 0:5.2.17-1.el9ap | RHSA-2026:59135 |
| Red Hat | ansible_automation_platform:2.6::el9 | automation-controller-cli, automation-controller-venv-tower | 0:4.7.16-1.el9ap | RHSA-2026:59136 |
| Red Hat | ansible_automation_platform:2.6::el9 | automation-platform-ui | 0:2.6.13-1.el9ap | RHSA-2026:59136 |
| 7 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 more | python-GitPython | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| openSUSE | Leap 16.0 | python-GitPython | 3.1.44-160000.4.1 | openSUSE-SU-2026:21874-1 |
| Alpine | v3.24 | py3-gitpython | 3.1.61-r0 | ALPINE-CVE-2026-78677 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
Red Hat Product Security has identified a path traversal vulnerability in GitPython versions before 3.1.59. The vulnerability arises because the `--separate-git-dir` option is not included in the `unsafe_git_clone_options` denylist, allowing attackers who control the `separate_git_dir` parameter during repository cloning to redirect Git repository metadata to arbitrary filesystem locations outside the intended clone destination. This can lead to arbitrary directory and file creation bounded only by process permissions. When combined with subsequent Git operations that trigger hook execution on the redirected repository, this vulnerability can escalate to arbitrary code execution. Exploitation requires that the application passes untrusted, attacker-controlled input to the `separate_git_dir` keyword argument of `Repo.clone_from()` or `Repo.clone()` methods without proper validation, while the `allow_unsafe_options` parameter remains at its default value of False.
To mitigate this vulnerability, upgrade to GitPython version 3.1.59 or later, which correctly includes `--separate-git-dir` in the unsafe options denylist. If upgrading is not immediately possible, ensure that the `separate_git_dir` parameter is never populated from untrusted or user-controlled sources. Applications should validate and sanitize any input before passing it to GitPython cloning methods, or avoid exposing the `separate_git_dir` parameter to external callers entirely.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | python3.12-gitpython-0:3.1.59-1.el8ap | Fixed 2026-08-24 | RHSA-2026:59135 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | python3.12-gitpython-0:3.1.59-1.el9ap | Fixed 2026-08-24 | RHSA-2026:59135 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | python3.12-gitpython-0:3.1.59-1.el9ap | Fixed 2026-08-24 | RHSA-2026:59136 |
| Red Hat Satellite 6.17 for RHEL 9 | python-gitpython-0:3.2.1-1.el9pc | Fixed 2026-11-05 | RHSA-2026:95656 |
| Red Hat Satellite 6.18 for RHEL 9 | python3.12-gitpython-0:3.2.1-1.el9pc | Fixed 2026-11-05 | RHSA-2026:95657 |
| Red Hat Satellite 6.19 for RHEL 9 | python3.12-gitpython-0:3.2.1-1.el9pc | Fixed 2026-10-29 | RHSA-2026:92861 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-feature-server-rhel9:1792148523 | Fixed 2026-10-21 | RHSA-2026:87410 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-feature-server-rhel9:1791863220 | Fixed 2026-10-19 | RHSA-2026:84734 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-mlflow-rhel9:1791865967 | Fixed 2026-10-19 | RHSA-2026:84734 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-th06-cpu-torch210-py312-rhel9:1791874335 | Fixed 2026-10-19 | RHSA-2026:84734 |
| Exploit Intelligence | exploit-intelligence/vulnerability-analysis-rhel9 | Affected | |
| Migration Toolkit for Applications 8 | mta/mta-solution-server-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-cpu-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-tpu-rhel9 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/controller-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/hub-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/controller-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/hub-rhel8 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/controller-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/hub-rhel9 | Affected | |
| 55 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-78677.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.