Medium severity6.5NVD Advisory· Published Aug 19, 2026· Updated Sep 3, 2026
CVE-2026-76217
CVE-2026-76217
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
GitPythonPyPI | < 3.1.58 | 3.1.58 |
Affected products
3- Range: <3.1.58
- osv-coords2 versionspkg:rpm/opensuse/python-GitPython&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-GitPython&distro=openSUSE%20Tumbleweed
< 3.1.44-160000.4.1+ 1 more
- (no CPE)range: < 3.1.44-160000.4.1
- (no CPE)range: < 3.1.59-2.1
Patches
Vulnerability mechanics
References
7- github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfcnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-hh9p-6wh2-4mfcghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-76217ghsaADVISORY
- www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-pathspec-from-filenvdThird Party AdvisoryWEB
- github.com/gitpython-developers/GitPython/commit/f2550b65bf60ca087190981e2c7b6865e201f40cghsaWEB
- github.com/gitpython-developers/GitPython/pull/2204ghsaWEB
- github.com/gitpython-developers/GitPython/releases/tag/3.1.58ghsaWEB
News mentions
1- Gitpython: Six High-Severity Vulnerabilities Patched in Version 3.1.58Vypr Intelligence · Aug 19, 2026