Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GitPython versions before 3.1.58 are vulnerable. In IndexFile.from_tree, IndexFile.reset and IndexFile.merge_tree, caller-supplied treeish strings are passed to git read-tree without an unsafe-option check, so an attacker who controls that input can inject the --index-output option. An attacker who can supply that input can overwrite an arbitrary writable file with a git index file, destroying its existing content. Upgrade to GitPython 3.1.58 or later.
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.0054, the 46th percentile, on 12 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-4gmw-gg2m-w46p
- OSV: GHSA-4gmw-gg2m-w46p
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-4gmw-gg2m-w46p
- nvd.nist.gov/vuln/detail/CVE-2026-76219
- github.com/gitpython-developers/GitPython/pull/2204
- github.com/gitpython-developers/GitPython/commit/9b5dcaf85da5946dbf69dcd53f9edba08f760b32
- github.com/gitpython-developers/GitPython
- github.com/gitpython-developers/GitPython/releases/tag/3.1.58
- www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-via-read-tree