simple-git is vulnerable to Command Injection
81
High Risk
simple-git has an unsafe operation guard that rejects a fixed list of dangerous Git configuration keys before they reach the git child process, but the list omitted trailer.cmd and trailer.command. Git runs both keys as a shell command in git interpret-trailers, so a value set through SimpleGitOptions.config or an inline -c argument under either key reached git with no guard in place. An application that passes untrusted input into instance configuration can have an arbitrary shell command run during a git operation. The fix adds matchers for both keys to the guard's denylist.
You are affected if you are using a version that falls within the vulnerable range and your application passes externally influenced values into SimpleGitOptions.config or an inline -c argument.
simple-git is vulnerable to Command Injection in versions 3.15.0 - 3.36.0.
Upgrade the simple-git library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

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.