Improper Neutralization of Argument Delimiters in a Command in GitPython - #VU139085
Published: July 22, 2026
GitPython
Detailed vulnerability description
The vulnerability allows a remote attacker to overwrite arbitrary files.
The vulnerability exists due to improper neutralization of argument delimiters in Repo.iter_commits() and Repo.blame() when placing a caller-supplied rev value before the end-of-options separator. A remote attacker can pass a crafted revision value such as a leading-dash option to overwrite arbitrary files.
The target file may be opened and truncated before Git validates the revision value.