8.8Alta
CVE-2026-87817GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation
Descripción
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.
Debilidad (CWE):
CWE-94
Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.
Productos y versiones afectados
| Fabricante | Producto | Versiones | |
|---|---|---|---|
| gitpython project | gitpython | < 3.1.60 | |
| gitpython-developers | GitPython | < 3.1.60, fixed 3.1.60 |
Referencias y parches
- 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
Coincidencias CPE (NVD) (1)
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*< 3.1.60