Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GitPython versions before 3.1.57 are vulnerable to arbitrary file overwrite through IndexFile.checkout() and arbitrary file read through TagReference.create(), because caller-supplied git options such as --prefix and -F are passed to git without the usual safety check. An attacker who can influence the arguments to these methods, or the repository content they operate on, could write repository file contents to chosen paths or read files outside the repository. Upgrade to GitPython 3.1.57, which is the fixed version.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.2 | High | 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N | CNA (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0057, the 47th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:10 UTC First seen by agentprime
- 31 Oct 2026, 14:10 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-3f7w-8rr8-f37f
- OSV: GHSA-3f7w-8rr8-f37f
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-3f7w-8rr8-f37f
- github.com/gitpython-developers/GitPython/pull/2193
- github.com/gitpython-developers/GitPython/commit/3af0c2516c5e18c829da30338614688f6b69b49c
- github.com/gitpython-developers/GitPython
- github.com/gitpython-developers/GitPython/releases/tag/3.1.57