HIGH 8.1
CVE-2022-24433
Command injection in simple-git
Description
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » simple-gitvia npm simple-git | < 3.3.0 | 3.3.0 |
| org.webjars.npm » simple-gitvia npm simple-git | < 3.3.0 | 3.3.0 |
Blast radius
1affected artifacts
3affected versions
0dependent artifacts (est.)
0dependent versions
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-24433 | nvd.nist.gov |
| Package | steveukx/git-js | github.com |
| Web | steveukx/git-js pull request #767 | github.com |
| Web | steveukx/git-js release simple-git@3.3.0 | github.com |
| Web | vuln/SNYK-JAVA-ORGWEBJARSNPM-2421245 | snyk.io |
| Web | vuln/SNYK-JS-SIMPLEGIT-2421199 | snyk.io |
