Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade simple-git to version 3.32.0 or higher.
simple-git is a light weight interface for running git commands in any node.js application.
Affected versions of this package are vulnerable to Command Injection through improper option parsing in the clone method. An attacker can execute arbitrary system commands by supplying specially crafted command-line options that bypass intended security checks.
Note:
This is only exploitable if the attacker can control the options passed to the underlying process.
This vulnerability was introduced by an incorrect patch for CVE-2022-25860