simple-git is vulnerable to OS Command Injection
81
CVE Score
High
OS Command Injection
simple-git filters -c config overrides passed through customArgs on git.clone(), but its denylist misses include.path and the conditional includeIf.<condition>.path key. Passing -c include.path=<file> (or the includeIf variant) loads an arbitrary local file as extra Git configuration, and that file can set blocked keys such as core.sshCommand. The next git operation in the same clone then runs the command from that configuration, leading to OS command injection. The fix adds matchers for both the plain and conditional forms.
Upgrade the simple-git library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application flows externally influenced data into customArgs.
0.0.1 - 3.36.0
Fixed in 4.0.0simple-git is vulnerable to OS Command Injection in versions 0.0.1 - 3.36.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.