PT-2026-88955

CVE-2026-87817

·

Published

2026-08-26

·

Updated

2026-09-30

Description by

CVSS 2.0
10
High
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions GitPython versions prior to 3.1.60
Description GitPython fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files such as gitdir, commondir, and HEAD. An attacker can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory, which triggers when a victim calls the index.commit() function on a cloned or opened repository. This issue affects any application, CI pipeline, or script that uses the library to interact with repositories from untrusted sources.
Recommendations Update to version 3.1.60.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-239G-WHFQ-7XJ9
GHSA-2PXQ-5VCG-RQ29
ECHO-DA18-07C8-F77A
OESA-2026-4025
OESA-2026-4026
OESA-2026-4027
OPENSUSE-SU-2026:21874-1
PYSEC-2026-3982
RHSA-2026:71113
RHSA-2026:71114
SUSE-SU-2026:4191-1
Found an issue in the description? Have something to add? Feel free to write us 👾