Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Gitpython Project | Gitpython | < 3.1.58 |
Related Weaknesses (CWE)
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-4gmw-ExploitVendor Advisory
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-vThird Party Advisory
FAQ
What is CVE-2026-76219?
CVE-2026-76219 is a vulnerability with a CVSS score of 8.1 (HIGH). 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 strin...
How severe is CVE-2026-76219?
CVE-2026-76219 has been rated HIGH with a CVSS base score of 8.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-76219?
Check the references section above for vendor advisories and patch information. Affected products include: Gitpython Project Gitpython.