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.
The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.
Link | Tags |
---|---|
https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306 | third party advisory patch |
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820 | third party advisory patch |
https://gist.github.com/lirantal/a930d902294b833514e821102316426b | third party advisory exploit |
https://github.com/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5 | third party advisory patch |