Intel

AIKIDO-2026-261915

simple-git is vulnerable to OS Command Injection

OS Command InjectionGHSA-g4wm-2vf7-vfgr Published 2 days ago

81

High Risk

This Affects:

JSsimple-git
0.0.1 - 3.36.0
Fixed in 4.0.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application flows externally influenced data into customArgs.

Background info

simple-git is vulnerable to OS Command Injection in versions 0.0.1 - 3.36.0.

How to fix this

Upgrade the simple-git library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform