Vulnerability · Published Apr 1, 2022 · Assigned by snyk
CVE-2022-24066Command 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.9% (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.9%top 9.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | simple-git | 3.5.0 | GHSA-28xr-mwxg-3qc8 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | simple-git | unspecified – before 3.5.0 |
References
- https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820 x_refsource_MISC
- https://gist.github.com/lirantal/a930d902294b833514e821102316426b x_refsource_MISC
- https://github.com/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5 x_refsource_MISC