What’s Vulnerable › Vulnerabilities
CVE-2026-76217: GitPython before 3.1.58 Arbitrary File Read via pathspec-from-file
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-08-19 · updated 2026-09-03
- Weakness: CWE-73
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.
Affected products
- gitpython-developers GitPython: before 3.1.58 — fixed in 3.1.58
How to fix
Upgrade to a fixed version: gitpython-developers GitPython 3.1.58. Check the vendor advisory for mitigations.
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfc
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-pathspec-from-file
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfc
Get alerted when CVE-2026-76217 or the next vulnerability affects your stack