simple-git is vulnerable to Argument Injection
81
High Risk
simple-git blocks --upload-pack, --receive-pack, and --exec by matching the parsed flag name against a pattern that only covers the full spelling. Git accepts unambiguous prefix abbreviations of long options, but the parser never canonicalizes the flag name, so --receive-p=<command> or --exe=<command> passed through push or rebase gets past the check. Git still expands the abbreviation and runs the referenced program, so the injected command executes during the git operation. The fix extends the patterns to cover these abbreviated forms.
You are affected if you are using a version that falls within the vulnerable range and your application passes externally influenced arguments to push or rebase.
simple-git is vulnerable to Argument Injection in versions 0.0.1 - 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.