---
cve: "CVE-2026-87817"
severity: "HIGH"
cvss: 8.7
epss: "0.3%"
vendor: "gitpython-developers"
kev: false
exploited: false
published: "2026-09-09 12:17:16"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-21T06:31:09+02:00"
---

# CVE-2026-87817

> 8.7 HIGH · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |

## Patch verfügbar (OSV)

- 56636c3614aff1555fe716d3804ca59e653934ea (Commit)

## Referenzen

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-239g-whfq-7xj9>
- <https://www.vulncheck.com/advisories/gitpython-before-3.1.60-remote-code-execution-via-git-directory-impersonation>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-87817) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
