8.8Hoch
CVE-2026-87817GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation
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.
Schwachstellentyp (CWE):
CWE-94
Daten: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Wiedergegeben wie in der Quelle, auf Englisch.
Betroffene Produkte und Versionen
| Hersteller | Produkt | Versionen | |
|---|---|---|---|
| gitpython project | gitpython | < 3.1.60 | |
| gitpython-developers | GitPython | < 3.1.60, fixed 3.1.60 |
Referenzen und Patches
- GitHub Security Advisory (GHSA-239g-whfq-7xj9) vendor-advisoryExploitMitigationVendor Advisory
- VulnCheck Advisory: GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation third-party-advisoryThird Party Advisory
CPE-Treffer (NVD) (1)
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*< 3.1.60