Vulnerability · Published Mar 11, 2022 · Assigned by snyk

CVE-2022-24433Command Injection

High 8.1

In plain English

A high-severity security flaw in simple-git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.7% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)3.7%top 10.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

The package simple-git before 3.3.0 are 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 & fixed versions

EcosystemPackageFixed inAdvisory
npmsimple-git3.3.0GHSA-3f95-r44v-8mrg

Affected products (as reported)

VendorProductVersions
n/a simple-git unspecified – before 3.3.0

References