CVE-2022-24066
Command injection in simple-git
Description
simple-git (maintained as git-js named repository on GitHub) is a light weight interface for running git commands in any node.js application.The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of CVE-2022-24433 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. A fix was released in simple-git@3.5.0.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » simple-gitvia npm simple-git | < 3.5.0 | 3.5.0 |
| org.webjars.npm » simple-gitvia npm simple-git | < 3.5.0 | 3.5.0 |
Blast radius
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2022-24066 | nvd.nist.gov |
| Package | steveukx/git-js | github.com |
| Web | steveukx/git-js commit 2040de6 | github.com |
| Web | lirantal/a930d902294b833514e821102316426b | gist.github.com |
| Web | steveukx/git-js release simple-git@3.5.0 | github.com |
| Web | vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820 | snyk.io |
| Web | vuln/SNYK-JS-SIMPLEGIT-2434306 | snyk.io |
