GitPython versions before 3.1.58 contain an arbitrary file overwrite vulnerability in IndexFile.fromtree, IndexFile.reset, and IndexFile.mergetree 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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-88"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76219.json"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "3.1.58"
}
],
"source": [
"AFFECTED_FIELD",
"DESCRIPTION"
]
}