Incomplete List of Disallowed Inputs in GitPython - #VU139090
Published: July 22, 2026
GitPython
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary commands.
The vulnerability exists due to an incomplete list of disallowed inputs in unsafe_git_clone_options in base.py when processing clone options. A remote user can supply the --template option pointing to a directory containing a crafted hook to execute arbitrary commands.
Exploitation requires an attacker-readable directory containing an executable hook, and the post-checkout hook is executed during clone.