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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.004 (33.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 34th percentile — 33.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-239g-whfq-7xj9) (vendor-advisory, Exploit, Mitigation, Vendor Advisory)
- VulnCheck Advisory: GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation (Third Party Advisory, 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.