published 19 Aug 2026 · updated 8 Oct 2026
GitPython before 3.1.58 Arbitrary File Overwrite via read-tree
8.1HighCVSS 8.1EPSS 1%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.1.58.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| gitpython-developers | <3.1.58 | 3.1.58 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket