# GHSA-2PXQ-5VCG-RQ29

- Priority: **Routine**
- Reason: Not severe (CVSS 8.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-09 · Modified: 2026-09-30
- Record: https://cvemate.com/vulnerability/GHSA-2PXQ-5VCG-RQ29 · JSON: https://cvemate.com/vulnerability/GHSA-2PXQ-5VCG-RQ29/json

## Description

```text
Duplicate Advisory: Repository content can impersonate the git directory, leading to arbitrary code execution

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-239g-whfq-7xj9. This link is maintained to preserve external references.

## Original Description
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.
```

## Signals

- CVSS: 8.7 high (v4.0, OSV · Pypi) 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- EPSS: not scored
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- PyPI gitpython (PyPI): ≤ 3.1.59

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-239g-whfq-7xj9>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-87817>
- <https://www.vulncheck.com/advisories/gitpython-before-3.1.60-remote-code-execution-via-git-directory-impersonation>

---

Data as of 2026-12-05T06:37:20.802Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
