THREATOPS
THREAT OPSThreat News › [GHSA] GHSA-4gmw-gg2m-w46p (high) — GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite

[GHSA] GHSA-4gmw-gg2m-w46p (high) — GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite

medgithub_advisoriesPublished 2026-08-07

GHSA-4gmw-gg2m-w46p Severity: high CVE: None

GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite

## Summary `IndexFile.from_tree`, `IndexFile.reset` (→ from_tree) and `IndexFile.merge_tree` append caller-influenced treeish strings positionally to `git read-tree` with no unsafe-option guard, no `allow_unsafe_options` parame

Original source: https://github.com/advisories/GHSA-4gmw-gg2m-w46p