# GHSA-W672-239G-C3GR

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-19 · Modified: 2026-09-08
- Record: https://cvemate.com/vulnerability/GHSA-W672-239G-C3GR · JSON: https://cvemate.com/vulnerability/GHSA-W672-239G-C3GR/json

## Description

```text
Duplicate Advisory: GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-hh9p-6wh2-4mfc. This link is maintained to preserve external references.

## Original Description
GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout(). Attackers can supply --pathspec-from-file and --pathspec-file-nul parameters to read arbitrary files accessible to the process, with full file contents returned in GitCommandError.stderr.
```

## Signals

- CVSS: 7.1 high (v4.0, OSV · Pypi) CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/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.57

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfc>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-76217>
- <https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-pathspec-from-file>

---

Data as of 2026-12-05T11:21:52.281Z. 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
