BIT-git-2022-25648: Command Injection
The package git before 1.11.0 are vulnerable to Command Injection via git argument injection. When calling the fetch(remote = 'origin', opts = {}) function, the remote parameter is passed to the git fetch subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection.
Affected Software
Event History
Frequently Asked Questions
What application behavior makes this issue exploitable?
An application is exposed when it calls fetch(remote = 'origin', opts = {}) and an attacker can influence the remote argument. The remote value can cause additional flags to be passed to the git fetch subcommand, enabling command injection.
Does exploitation require authentication or user interaction?
The supplied severity vector indicates no privileges and no user interaction are required. Exploitation has high attack complexity.
Which versions should be remediated?
Versions before 1.11.0 are affected. Update to version 1.11.0 or later.