{"id":"CVE-2026-76219","published":"2026-08-19T14:02:03Z","modified":"2026-10-08T15:25:01Z","title":"GitPython before 3.1.58 Arbitrary File Overwrite via read-tree","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00543,"percentile":0.46533,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-4gmw-gg2m-w46p","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-via-read-tree","tags":["third-party-advisory"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":9.31},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.58"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.58"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-20T13:47:26.740686Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.58"],"patched":["3.1.58"],"from":["GHSA-4gmw-gg2m-w46p","PYSEC-2026-3838"],"provenance":"source"}],"summary":{"text":"The flaw is an argument injection in GitPython before 3.1.58, located in the IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree methods, which pass caller-influenced treeish strings to git read-tree without validating options or separating arguments. An attacker who can influence those treeish strings and has low-privilege access can inject the --index-output option to overwrite arbitrary writable files with a git-index blob, destroying their existing content, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:43Z"},"euvd":{"id":"EUVD-2026-62460","exploited":false,"provenance":"source"}}