Intel

AIKIDO-2026-261915

simple-git is vulnerable to OS Command Injection

CVE-2026-102826Published Oct 5, 2026
October 5, 2026

81

CVE Score

High

OS Command Injection

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.

How do I fix this?

Upgrade the simple-git library to the patch version.

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.

Package

Versions

0.0.1 - 3.36.0

Fixed in 4.0.0

Background info

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

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea