Vulnerability
CVE-2026-87817
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.
24 advisories report this vulnerability, across 8 ecosystems.
Advisories
- CGA-4gh9-vrm7-r5rh
- CGA-7467-6594-qjg2
- CGA-8vr3-vwh8-69rq
- CGA-cpp3-gw43-rv8f
- CGA-jv6j-w246-26pj
- CGA-p6x5-8363-6j7h
- CGA-xc3j-mf7q-pg24
-
DEBIAN-CVE-2026-87817
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…
-
DLA-4872-1
python-git - security update
-
DSA-6594-1
python-git - security update
-
GHSA-239g-whfq-7xj9
GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution
-
OESA-2026-4025
python-GitPython security update
-
OESA-2026-4026
python-GitPython security update
-
OESA-2026-4027
python-GitPython security update
-
PYSEC-2026-3982
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…
-
RHSA-2026:71113
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
RHSA-2026:71114
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
-
RHSA-2026:74503
Red Hat Security Advisory: Satellite 6.19.5 Async Update
-
RHSA-2026:74504
Red Hat Security Advisory: Satellite 6.18.10 Async Update
-
RHSA-2026:74505
Red Hat Security Advisory: Satellite 6.17.12 Async Update
-
RHSA-2026:74506
Red Hat Security Advisory: Satellite 6.16.14 Async Update
-
SUSE-SU-2026:4191-1
Security update for python-GitPython
-
UBUNTU-CVE-2026-87817
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…
-
openSUSE-SU-2026:21874-1
Security update for python-GitPython