Description
GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kwargs. Attackers can use --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files returned in-band.
Metrics
CVSS 3.1 8.1/10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | < 3.1.57 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-3f7w-8rr8-f37fExploit, Vendor Advisory
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-and-readThird Party Advisory
Timeline
- Published
- Aug 13, 2026
- Last modified
- Oct 24, 2026
- NVD status
- Analyzed