CVE-2026-87817 json
GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation
published 2mo ago modified last mo. also EUVD-2026-74843 , GHSA-239g-whfq-7xj9 , PYSEC-2026-3982
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 36%
- public exploits
- 0
- none known
Summary
GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.
Patch / fix
- pypi gitpython 3.1.60
- gitpython-developers GitPython 3.1.60
- 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-87817
- foreman satellite utils 6.17, satellite capsule 6.17, satellite 6.17 3.14.0.22-1.el9sat
- satellite satellite utils 6.17, satellite capsule 6.17, satellite 6.17 6.17.12-1.el9sat
- foreman-cli satellite utils 6.17, satellite 6.17 3.14.0.22-1.el9sat
- foreman-ec2 satellite 6.17 3.14.0.22-1.el9sat
- foreman-pcp satellite capsule 6.17, satellite 6.17 3.14.0.22-1.el9sat
- python-lxml satellite capsule 6.17, satellite 6.17 5.3.1-2.el9pc
- foreman-ovirt satellite 6.17 3.14.0.22-1.el9sat
- foreman-redis satellite 6.17 3.14.0.22-1.el9sat
red hat advisories RHSA-2026:74505RHSA-2026:74504RHSA-2026:74506RHSA-2026:74503RHSA-2026:71114RHSA-2026:71113
- 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.11.1
suse advisories SUSE-SU-2026:4191-1
- python-GitPython openSUSE Leap 16.0 3.1.44-160000.4.1
opensuse advisories openSUSE-SU-2026:21874-1
Is CVE-2026-87817 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 FencerVendor 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-87817 updated cvss 8.8
GitPython: GitPython: Remote Code Execution via Git directory impersonation
-
Red Hat Exploit Intelligence exploit-intelligence/vulnerability-analysis-rhel9, exploit-intelligence-tech-preview/vulnerability-analysis-rhel9affected: no fix available, no fix planned “Will not fix”
-
Red Hat AI Inference Server rhaiis/vllm-cpu-rhel9, rhaiis/vllm-tpu-rhel9affected: no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-25/hub-rhel8, ansible-automation-platform-26/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-rhel9affected: no fix available, no fix planned “Will not fix”
-
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 moreaffected: no fix available
-
Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25/controller-rhel8 1789607021fixed: vendor fix RHSA-2026:71210
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 python3.12-gitpython 3.1.60-1.el8ap, automation-controller-venv-tower 4.6.33-1.el8ap Red Hat Ansible Automation Platform 2.5 for RHEL 9 python3.12-gitpython 3.1.60-1.el9ap, automation-controller-venv-tower 4.6.33-1.el9apfixed: vendor fix RHSA-2026:71114
-
Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/controller-rhel9 1789673739fixed: vendor fix RHSA-2026:71179
-
Red Hat Ansible Automation Platform 2.6 for RHEL 9 python3.12-gitpython 3.1.60-1.el9ap, automation-controller-venv-tower 4.7.17-1.el9apfixed: vendor fix RHSA-2026:71113
show 14 moreshow fewer
-
Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/hub-rhel9 1792388670, ansible-automation-platform-27/controller-rhel9 1789580684fixed: vendor fix RHSA-2026:71177
-
Red Hat OpenShift AI 2.25 rhoai/odh-feature-server-rhel9 1792148523fixed: 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 1791786619fixed: vendor fix RHSA-2026:84734
-
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 morefixed: vendor fix RHSA-2026:86891
-
Red Hat Satellite 6.16 for RHEL 8 python-gitpython 3.1.62-1.el8pc, python3.11-gitpython 3.1.62-1.el8pc Red Hat Satellite 6.16 for RHEL 9 python-gitpython 3.1.62-1.el9pc, python3.11-gitpython 3.1.62-1.el9pcfixed: vendor fix RHSA-2026:74506
-
Red Hat Satellite 6.17 for RHEL 9 python-gitpython 3.1.62-1.el9pc, python3.11-gitpython 3.1.62-1.el9pcfixed: vendor fix RHSA-2026:74505
-
Red Hat Satellite 6.18 satellite/iop-vmaas-rhel9 1789611858, satellite/iop-vulnerability-engine-rhel9 1790820821fixed: vendor fix RHSA-2026:68764
-
Red Hat Satellite 6.18 for RHEL 9 python3.12-gitpython 3.1.62-1.el9pcfixed: vendor fix RHSA-2026:74504
-
Red Hat Satellite 6.19 satellite/iop-vmaas-rhel9 1789611998, satellite/iop-vulnerability-engine-rhel9 1790821217fixed: vendor fix RHSA-2026:68780
-
Red Hat Satellite 6.19 for RHEL 9 python3.12-gitpython 3.1.62-1.el9pcfixed: vendor fix RHSA-2026:74503
-
Red Hat Migration Toolkit for Applications 8 mta/mta-solution-server-rhel9not affected: component not present
-
Red Hat Ansible Automation Platform 2 python-gitpython, python3x-gitpython, python3.11-gitpython, ansible-automation-platform-24/hub-rhel8 Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25/hub-rhel8 1789606395, ansible-automation-platform-25/gateway-rhel8 1789605572, ansible-automation-platform-25/hub-web-rhel8 1789690469, ansible-automation-platform-25/receptor-rhel8 1789590330, ansible-automation-platform-25/de-minimal-rhel8 1789634812, ansible-automation-platform-25/ee-minimal-rhel8 1789652412, +20 more Red Hat Ansible Automation Platform 2.5 for RHEL 8 receptor 1.6.8-1.el8ap, receptorctl 1.6.8-1.el8ap, automation-hub 4.10.19-1.el8ap, python3.12-sqlparse 0.6.0-1.el8ap, automation-controller 4.6.33-1.el8ap, python3.12-galaxy-ng 4.10.19-1.el8ap, +13 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 receptor 1.6.8-1.el9ap, receptorctl 1.6.8-1.el9ap, automation-hub 4.10.19-1.el9ap, python3.12-sqlparse 0.6.0-1.el9ap, automation-controller 4.6.33-1.el9ap, python3.12-galaxy-ng 4.10.19-1.el9ap, +13 more Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/hub-rhel9 1789611274, ansible-automation-platform-26/gateway-rhel9 1789666472, ansible-automation-platform-26/hub-web-rhel9 1789615881, ansible-automation-platform-26/receptor-rhel9 1789610120, ansible-automation-platform-26/mcp-tools-rhel9 1789609282, ansible-automation-platform-26/de-minimal-rhel9 1789658734, +24 more Red Hat Ansible Automation Platform 2.6 for RHEL 9 receptor 1.6.8-1.el9ap, receptorctl 1.6.8-1.el9ap, automation-hub 4.11.14-1.el9ap, python3.12-sqlparse 0.6.0-1.el9ap, automation-controller 4.7.17-1.el9ap, python3.12-galaxy-ng 4.11.14-1.el9ap, +27 morenot affected: vulnerable code not present
+2 more productsfewer
Red Hat Ansible Automation Platform 2.6 for RHEL 10 receptor 1.6.8-1.el10ap, receptorctl 1.6.8-1.el10ap, python-sqlparse 0.6.0-1.el10ap, python3-sqlparse 0.6.0-1.el10ap Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/hub-rhel9 1789572632, ansible-automation-platform-27/gateway-rhel9 1789579764, ansible-automation-platform-27/gateway-rhel9 1792429216, ansible-automation-platform-27/hub-web-rhel9 1789575016, ansible-automation-platform-27/hub-web-rhel9 1792394496, ansible-automation-platform-27/receptor-rhel9 1789519651, +57 more -
Red Hat Hardened Images llvm, rust, llvm21, swift-lang Red Hat OpenShift AI (RHOAI) rhoai/odh-th06-cpu-torch291-py312-rhel9, rhoai/odh-th06-cuda130-torch291-py312-rhel9, rhoai/odh-trustyai-nemo-guardrails-server-rhel9not 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, +94 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 16.2 python3-GitPython Red Hat OpenStack Platform 17.1 GitPython, python3-GitPython Red Hat Satellite 6.16 for RHEL 8 python-lxml 4.9.2-5.el8pc, foreman 3.12.0.23-1.el8sat, satellite 6.16.14-1.el8sat, python-sqlparse 0.6.0-1.el8pc, python3.11-lxml 4.9.2-5.el8pc, foreman-cli 3.12.0.23-1.el8sat, +26 morenot affected: vulnerable code not present
+2 more productsfewer
Red Hat Satellite 6.16 for RHEL 9 python-lxml 4.9.2-5.el9pc, foreman 3.12.0.23-1.el9sat, satellite 6.16.14-1.el9sat, python-sqlparse 0.6.0-1.el9pc, python3.11-lxml 4.9.2-5.el9pc, foreman-cli 3.12.0.23-1.el9sat, +26 more Red Hat Satellite 6.17 for RHEL 9 python-lxml 5.3.1-2.el9pc, foreman 3.14.0.22-1.el9sat, satellite 6.17.12-1.el9sat, python-sqlparse 0.6.0-1.el9pc, python3.11-lxml 5.3.1-2.el9pc, foreman-cli 3.14.0.22-1.el9sat, +25 more
2 more not affected in the full advisory
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
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2mo ago
Exploit prediction
0.42% chance of exploitation in the next 30 days, higher than 36% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- github.com https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-239g-whfq-7xj9 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:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/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.60 |
3.1.60 |
Affected products
- gitpython-developers GitPython
Classification
References
-
github.com
/gitpython-developers/GitPython/pull/2218
web
-
github.com
/gitpython-developers/GitPython/commit/c7cf4d13b1ed0a2e70f2a1f3c6b4fc6c2652cf0b
web
-
github.com
/gitpython-developers/GitPython/security/advisories/GHSA-239g-whfq-7xj9
vendor-advisory, web, exploit, mitigation, evidence, advisory
-
vulncheck.com
/advisories/gitpython-before-3.1.60-remote-code-execution-via-git-directory-impersonation
third-party-advisory, web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-87817
advisory
-
github.com
/gitpython-developers/GitPython
package
-
github.com
/gitpython-developers/GitPython/releases/tag/3.1.60
web
-
github.com
/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3982.yaml
web
Sources
- CVE List CVE-2026-87817
- GitHub Advisory GHSA-239g-whfq-7xj9
- NVD CVE-2026-87817
- OSV PYSEC-2026-3982
- Maintainer advisory GHSA-239g-whfq-7xj9
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.