THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-239g-whfq-7xj9 (high) — GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution

[GHSA] GHSA-239g-whfq-7xj9 (high) — GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution

medgithub_advisoriesPublished 2026-09-30

GHSA-239g-whfq-7xj9 Severity: high CVE: CVE-2026-87817

GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution

### Summary

`Repo.__init__` decides which directory is the git directory by testing candidate paths in an order that considers the real `.git` **last**. Two earlier tests can be satisfied by ordinary tracked files. Git reserves only the lite

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://github.com/advisories/GHSA-239g-whfq-7xj9