BIT-git-2022-25648: 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

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.

2

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.

3

Which versions should be remediated?

Versions before 1.11.0 are affected. Update to version 1.11.0 or later.

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