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.
https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-via-read-tree
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-4gmw-gg2m-w46p
Published: 2026-08-19
Updated: 2026-08-19
Base Score: 8.5
Vector: CVSS2#AV:N/AC:L/Au:S/C:N/I:C/A:C
Severity: High
Base Score: 8.1
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Severity: High
Base Score: 7.2
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Severity: High