Command injection in ruby-git
Critical severity
GitHub Reviewed
Published
Apr 20, 2022
to the GitHub Advisory Database
•
Updated Jul 3, 2023
Description
Published by the National Vulnerability Database
Apr 19, 2022
Published to the GitHub Advisory Database
Apr 20, 2022
Reviewed
Apr 28, 2022
Last updated
Jul 3, 2023
The package prior to v1.11.0 is vulnerable to Command Injection via git argument injection. When calling the
fetch(remote = 'origin', opts = {})
function, the remote parameter is passed to thegit fetch
subcommand in a way such that additional flags can be set. The additional flags can be used to perform a command injection.References