Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Gitpython Project | Gitpython | < 3.1.58 |
Related Weaknesses (CWE)
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-ExploitVendor Advisory
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-paThird Party Advisory
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-ExploitVendor Advisory
FAQ
What is CVE-2026-76217?
CVE-2026-76217 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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...
How severe is CVE-2026-76217?
CVE-2026-76217 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-76217?
Check the references section above for vendor advisories and patch information. Affected products include: Gitpython Project Gitpython.