RCE in Gitpython-Developers Gitpython
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.
Vulnerability class: RCE (Remote Code Execution)
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
Affected products
Weakness classification (CWE)
References
- disclosure@vulncheck.com (vendor-advisory)
- disclosure@vulncheck.com (third-party-advisory)
Frequently asked questions
- What is CVE-2026-87817?
- CVE-2026-87817 is a high-severity vulnerability in Gitpython-Developers Gitpython, classified under Code Injection. CVSS score: 8.8/10. Published 2026-09-09.
- How severe is CVE-2026-87817?
- High severity. CVSS v3 base score is 8.8 out of 10.