Remote Code Execution Vulnerability in GitPython by GitHub
CVE-2026-87817

8.7HIGH

Key Information:

Status
Vendor
CVE Published:
9 September 2026

What is CVE-2026-87817?

The GitPython library, prior to version 3.1.60, is susceptible to a vulnerability that compromises the validation process of the git directory location. This flaw permits attackers to mimic the git directory by utilizing tracked files such as gitdir, commondir, and HEAD. By placing a harmful pre-commit hook in the monitored hooks directory, malicious actors can execute arbitrary code whenever a user invokes index.commit() on a cloned or opened repository, leading to potential exploitation.

Affected Version(s)

GitPython 0 < 3.1.60

GitPython 3.1.60

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

dharanivarma
.