GitPython versions before 3.1.58 contain an arbitrary file overwrite vulnerability in IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree methods that append caller-influenced treeish stri…
- CVSS
- 8.1High
- Chance of exploitation (EPSS)
- —
- Published
- Aug 19, 2026
- In the news
- Not yet
What to do
A serious security flaw in Gitpython that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Fixed in: 3.1.58
Affected versions
- Gitpython
- Before 3.1.58
Description
GitPython versions before 3.1.58 contain an arbitrary file overwrite vulnerability in IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree methods that append caller-influenced treeish strings to git read-tree without option validation or argument separation. Attackers can inject the --index-output option to overwrite arbitrary files with a valid git-index blob, destroying existing file content at attacker-controlled writable paths.
Affected products
Get alerts for these →Timeline 6
Latest change: Tenable Cloud Security plugin 483102: Alpine: multiple py3-gitpython packages: security update to 3.1.61-r0 (Dec 3, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Yesterday
Thu, Nov 26, 2026
Sat, Oct 31, 2026
Wed, Aug 19, 2026
- CVECVE-2026-76219 published (CVSS 8.1)CVE Program · 14:17 UTC
References 2
- github.com ExploitVendor Advisory /gitpython-developers/GitPython/security/advisories/GHSA-4gmw-gg2m-w46p
- www.vulncheck.com /advisories/gitpython-before-arbitrary-file-overwrite-via-read-tree