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.
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
Explore the affected products and dependency analysis for 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.