simple-git is vulnerable to Argument Injection
81
CVE Score
High
Argument Injection
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.
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 passes externally influenced arguments to push or rebase.
0.0.1 - 3.36.0
Fixed in 4.0.0simple-git is vulnerable to Argument 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.