SNYK-RUBY-GIT-2421270: Command Injection

Published Apr 19, 2022
·
Updated

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

1 affected component
npm/git<1.11.0

Event History

Apr 19, 2022
CVE Published
via OSV·04:35 PM
Data Sourced
via OSV·04:35 PM
DescriptionSeverity

Frequently Asked Questions

1

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.

2

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.

3

What is the remediation?

Upgrade the git package to version 1.11.0 or later. The issue affects versions before 1.11.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203