PT-2026-88955
CVE-2026-87817
·
Published
2026-08-26
·
Updated
2026-09-30
Description by
CVSS 2.0
10
HighMetricsAV: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
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾