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.
CVE-2026-87817
Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2026-09-09. a secondary CVSS source baseline 8.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.8
- EG Score
- 8.8(high)
- EG Risk
- 55(Track)EG Risk 55/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity88% × 45%Exploitation0% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 26%
- KEV
- Not listed
Published
September 9, 2026
Last Modified
September 16, 2026
Advisory Details (2)
Auto-updated Sep 9, 2026GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation | Advisories | VulnCheck
https://www.vulncheck.com/advisories/gitpython-before-3.1.60-remote-code-execution-via-git-directory-impersonationRepository content can impersonate the git directory, leading to arbitrary code execution · Advisory · gitpython-developers/GitPython · GitHub
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-239g-whfq-7xj9Vendor Advisories for CVE-2026-87817(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| gitpython | 0.1.7 ... 3.1.9 (112 versions) | 3.1.60 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 27× in last 7d / 44× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-09-19 01:32 UTCEG score recompute
- 2026-09-19 01:32 UTCGHSA enrichment
- 2026-09-18 19:28 UTCEPSS rescore
- 2026-09-18 13:59 UTCGHSA enrichment
- 2026-09-18 02:25 UTCEG score recompute
- 2026-09-18 02:25 UTCGHSA enrichment
- 2026-09-17 19:32 UTCEPSS rescore
- 2026-09-17 14:51 UTCGHSA enrichment
- 2026-09-17 03:17 UTCGHSA enrichment
- 2026-09-16 15:43 UTCEG score recompute
- 2026-09-16 15:43 UTCGHSA enrichment
- 2026-09-16 14:09 UTCEPSS rescore
- 2026-09-16 10:12 UTCEG score recompute
- 2026-09-16 10:12 UTCGHSA enrichment
- 2026-09-16 05:15 UTCEPSS rescore
- 2026-09-15 22:37 UTCGHSA enrichment
- 2026-09-15 11:03 UTCEG score recompute
- 2026-09-15 11:03 UTCGHSA enrichment
- 2026-09-15 03:12 UTCEPSS rescore
- 2026-09-14 23:29 UTCGHSA enrichment
- 2026-09-14 11:54 UTCGHSA enrichment
- 2026-09-14 00:20 UTCEG score recompute
- 2026-09-14 00:20 UTCGHSA enrichment
- 2026-09-13 12:46 UTCGHSA enrichment
- 2026-09-13 01:12 UTCEG score recompute
Show 19 moreShow fewer
- 2026-09-13 01:12 UTCGHSA enrichment
- 2026-09-12 13:38 UTCGHSA enrichment
- 2026-09-12 02:04 UTCEG score recompute
- 2026-09-12 02:04 UTCGHSA enrichment
- 2026-09-11 14:53 UTCEPSS rescore
- 2026-09-11 14:53 UTCEPSS rescore
- 2026-09-11 14:30 UTCEG score recompute
- 2026-09-11 14:30 UTCGHSA enrichment
- 2026-09-11 02:56 UTCGHSA enrichment
- 2026-09-10 15:22 UTCEG score recompute
- 2026-09-10 15:22 UTCGHSA enrichment
- 2026-09-10 15:00 UTCEG score recompute
- 2026-09-10 15:00 UTCGHSA enrichment
- 2026-09-10 08:26 UTCGHSA enrichment
- 2026-09-09 20:50 UTCEG score recompute
- 2026-09-09 20:50 UTCGHSA enrichment
- 2026-09-09 12:25 UTCEG score recompute
- 2026-09-09 11:30 UTCEG score recompute
- 2026-09-09 11:29 UTCMITRE cvelistV5first tracked
Frequently asked(5)
What is CVE-2026-87817?
When was CVE-2026-87817 disclosed?
Is CVE-2026-87817 actively exploited?
What is the CVSS score of CVE-2026-87817?
How do I remediate CVE-2026-87817?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-87817
Is Your Infrastructure Affected by CVE-2026-87817?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.