Skip to content
Threat Feed
high advisory PoC

simple-git: Argument injection via --exec option (CVE-2026-134815)

The simple-git library is vulnerable to command injection via the --exec argument in versions prior to 4.1.0, allowing attackers to execute arbitrary commands on the host by supplying malicious arguments to listRemote() or raw() methods.

CVE search metadata

CVE search record: CVE-2026-134815. Severity: high. CVSS: 8.1. KEV: no. Product: @simple-git/argv-parser, simple-git. Brief: simple-git: Argument injection via --exec option (CVE-2026-134815). Brief link: https://feed.craftedsignal.io/briefs/2026-11-simple-git-injection-cve-2026-134815/

Triage facts

Revision 1
Applicability
@simple-git/argv-parser, simple-git
Evidence
Unknown
Severity
High
Action
Immediate escalation
Sources
5 public sources
Freshness
Revision 1Nov 23, 12:27 UTC
Vulnerabilities
1 CVE
Source quality
A1Likely

Overview

simple-git versions before 4.1.0 contain an argument injection vulnerability (CVE-2026-134815) caused by insufficient validation of the --exec command-line option. While the library previously restricted the use of --exec for push operations, it failed to extend this security guard to other pack-related operations such as ls-remote, archive, fetch-pack, and send-pack. An attacker who can influence the arguments passed to the listRemote() or raw() APIs can inject --exec to force the underlying Git binary to execute an attacker-specified program on the host.

Attack Chain

  1. Attacker identifies an application using a vulnerable version of simple-git (< 4.1.0) that accepts user-supplied input.
  2. Attacker influences arguments passed to the simple-git listRemote() or raw() methods.
  3. Attacker injects the --exec argument, for example: git.raw('ls-remote', '--exec=/path/to/attacker-program', 'origin').
  4. The application passes these arguments to the underlying Git binary without validation.
  5. The Git binary executes the specified malicious program on the host system during the pack operation.

Impact

Successful exploitation allows for remote command execution on the host system where the application utilizing simple-git is running. This can lead to full system compromise, data exfiltration, or unauthorized lateral movement within the network.

Recommendation

  1. Upgrade all instances of simple-git to version 4.1.0 or later immediately.
  2. Audit application code that passes user-controlled input into simple-git APIs, specifically listRemote() and raw(), to ensure proper input sanitization.
  3. Review environment configurations to limit the execution of unauthorized binaries by the user account running the Node.js application.

Immediate actions

Upgrade simple-git to 4.1.0 or later in all dependencies.

IT Operations 24h

Threat Hunt

Search application logs for unusual child processes spawned by Node.js applications that utilize simple-git, particularly when originating from Git-related operations.

T1059 high medium confidence hunt now

Data: Endpoint process monitoring logs, Node.js application audit logs

Mitigations

Upgrade simple-git to 4.1.0.

immediate IT Operations

CVE-2026-134815