SNYK-RUBY-GIT-2421270: 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
Which deployments are exposed to this issue?
Deployments using the git package before version 1.11.0 are affected when they call fetch(remote = 'origin', opts = {}) with a remote value that an attacker can influence.
What must an attacker control to exploit the vulnerability?
An attacker needs to supply or influence the remote argument passed to fetch. The vulnerable argument handling allows extra flags to be added to the git fetch subcommand, which can be used for command injection.
What is the remediation?
Upgrade the git package to version 1.11.0 or later. The issue affects versions before 1.11.0.