NetSight
high8.1

CVE-2022-24433

Command injection in simple-git

Impact

The package simple-git before 3.3.0 is vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options, it was possible to get arbitrary command execution.

Affected packages

EcosystemPackageAffectedFixed in
npmsimple-git< 3.3.03.3.0

Affected products

VendorProductAffected versions
Simple-Git ProjectSimple-Git
before 3.3.0

Weakness classification

References