OS Command Injection in GitPython - #VU139086
Published: July 22, 2026
GitPython
Detailed vulnerability description
The vulnerability allows a remote user to execute a local command.
The vulnerability exists due to improper neutralization of special elements used in an os command in the Repo.clone_from unsafe clone option gate when processing attacker-influenced clone options in multi_options. A remote user can supply a joined short option such as -u<helper> to execute a local command.
Exploitation requires an application to pass attacker-influenced clone options into Repo.clone_from(..., multi_options=...) while relying on the default unsafe-option gate to block unsafe clone options.