# Critical simple-git Node.js Library Argument Injection Enables Remote Code Execution (CVE-2026-134815)

> A critical argument-injection flaw (CWE-88) in the simple-git npm library lets an attacker who controls input reaching listRemote() or raw() inject git's --exec option and run commands on the host with the privileges of the Node.js process. It affects simple-git below 4.1.0 and @simple-git/argv-parser below 3.0.0, and is fixed in simple-git 4.1.0 and @simple-git/argv-parser 3.0.0.

- **Published:** 2026-11-24T06:15:04Z
- **Last reviewed:** 2026-11-24T06:15:04Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6759
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6759.png
- **ID:** TL-2026-6759
- **Severity:** CRITICAL (CVSS 9.2)
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 5 (1 shown free below)
- **CVEs:** CVE-2026-134815, CVE-2026-6951, CVE-2026-28292, CVE-2022-24433, CVE-2026-28291, CVE-2026-102827

## Description

CVE-2026-134815 is an argument-injection vulnerability (CWE-88) in simple-git, a widely used Node.js wrapper that shells out to the git binary. VulnCheck assigned the CVE and a CVSS 4.0 base score of 9.2 (Critical). Per the reporting, no authentication or user interaction is needed, attack complexity is high, and there is an attack requirement: the application must pass untrusted input into the vulnerable API in a particular way. Impact to confidentiality, integrity and availability is rated high.

The library ships an opt-in guard, allowUnsafePack, meant to block git options that make git execute an external program. Before simple-git 4.1.0 that guard blocked --exec only for push operations. If untrusted input reaches listRemote() or raw(), an attacker can append --exec to other git sub-commands, namely ls-remote, archive (--remote), fetch-pack and send-pack. Git treats the value as the name of a remote helper program and executes it on the host, so attacker-chosen commands run with the privileges of the Node.js process. Upwind (Roy Kalfon, 2026-11-23) published the write-up of the guard bypass. No payload, PoC, or in-the-wild exploitation is described in any source reviewed.

The fix landed in simple-git 4.1.0 (GitHub release dated 16 November; commit c8ee6bb), where allowUnsafePack now blocks --exec for every command except rebase. The release also adds allowConfig and strict options, a unsafe.recommended level, and a git.cmd tagged-template API that treats every interpolated value as untrusted data that cannot add options or change settings. The detection logic lives in @simple-git/argv-parser, so both packages must be upgraded together (simple-git 4.1.0 and @simple-git/argv-parser 3.0.0). The release notes credit roughly 18 reporters of vulnerability reports and CVE proposals.

This is the latest in a recurring series of simple-git guard bypasses: CVE-2022-24433 (option injection via fetch(), fixed 3.3.0), CVE-2026-28292 (case-sensitivity bypass of the protocol.allow check), CVE-2026-6951 (GHSA-hffm-xvc3-vprc; --config not blocked, fixed 3.36.0), CVE-2026-28291 (short-option variants such as -vu/-nu bypassing -u check, fixed 3.32.0) and CVE-2026-102827 (abbreviated flags such as --exe bypassing literal flag matching in argv-parser; reported fixed in 4.0.0 by Mend/Vulert). Defenders should treat any application that forwards user-controlled repository URLs, branch names or raw git arguments to simple-git as exposed, including indirect copies pulled in as transitive dependencies. Mitigation: upgrade both packages, locate transitive copies with npm ls simple-git, validate inputs against fixed allowlists of repository URLs and branch names, run the Node.js process as a low-privilege user, and use lockfiles with npm ci.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1195.001 Compromise Software Dependencies and Development Tools
- T1059 Command and Scripting Interpreter
- T1202 Indirect Command Execution
- T1005 Data from Local System
- T1565 Data Manipulation

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**CVE-2026-134815 simple-git --exec Injection - Node.js Spawning git ls-remote/archive/fetch-pack/send-pack** (`TL-2026-6759-SPL-001`)

Detects the exploitation primitive of CVE-2026-134815 (CWE-88): a node process spawning git with the --exec option (or an abbreviated form such as --exe) on ls-remote, archive --remote, fetch-pack or send-pack. Before simple-git 4.1.0 the allowUnsafePack guard only blocked --exec for push, so untrusted input reaching listRemote()/raw() could make git run an attacker-chosen program as the Node.js user. The research reports no in-the-wild exploitation or public PoC; this rule is behaviour-first and fires on the injected git command line itself.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1202, T1059
- **Data sources:** sysmon, sysmon_for_linux, microsoft_defender_for_endpoint:DeviceProcessEvents
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
((index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational") OR (index=linux sourcetype="sysmon:linux")) EventCode=1 earliest=-24h ParentImage IN ("*/node","*/nodejs","*node.exe") Image IN ("*/git","*git.exe") CommandLine="*--ex*"
| regex CommandLine="(?i)\s--ex(e|ec)?(=|\s|$)"
| regex CommandLine="(?i)\b(ls-remote|archive|fetch-pack|send-pack)\b"
| stats count min(_time) AS first_seen max(_time) AS last_seen values(CommandLine) AS git_cmdlines values(ParentCommandLine) AS node_cmdlines BY host, User, ParentImage
| convert ctime(first_seen) ctime(last_seen)
```

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName in~ ("git","git.exe")
| where InitiatingProcessFileName in~ ("node","nodejs","node.exe")
| where ProcessCommandLine matches regex @"(?i)\s--ex(e|ec)?(=|\s|$)"
| where ProcessCommandLine matches regex @"(?i)\b(ls-remote|archive|fetch-pack|send-pack)\b"
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountName
| order by Timestamp desc
```

### Sigma

```yaml
title: simple-git Argument Injection - Node.js Spawning git With --exec (CVE-2026-134815)
id: 7c1e4b52-3a8d-4f96-b0a2-5d9e61c7a431
status: experimental
description: Detects node spawning git ls-remote, archive, fetch-pack or send-pack with an --exec option (or abbreviated --exe), the injection primitive of the simple-git allowUnsafePack bypass.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-134815
  - https://www.upwind.io/blog/threat-post/cve-2026-134815-simple-git-argument-injection-via-exec-enables-host-command-execution
  - https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0
author: Threadlinqs Team
date: 2026/11/24
tags:
  - attack.initial-access
  - attack.t1190
  - attack.defense-evasion
  - attack.t1202
  - attack.execution
  - attack.t1059
  - cve.2026.134815
logsource:
  category: process_creation
detection:
  selection_parent:
    ParentImage|endswith:
      - '/node'
      - '/nodejs'
      - '\node.exe'
  selection_git:
    Image|endswith:
      - '/git'
      - '\git.exe'
  selection_sub:
    CommandLine|re: '(?i)\b(ls-remote|archive|fetch-pack|send-pack)\b'
  selection_exec:
    CommandLine|re: '(?i)\s--ex(e|ec)?(=|\s|$)'
  condition: all of selection_*
falsepositives:
  - Security testing or red-team validation of simple-git guards
  - Custom tooling that deliberately invokes git archive --remote with --exec
level: high

```

**Known false positives:**

- Security testing or red-team validation of simple-git guards
- Custom tooling that deliberately invokes git archive --remote with --exec

**Tuning notes:** Exclude known scanner hosts/accounts. Replace the node parent filter with your service launcher (pm2, npm, docker-init) if node is wrapped. On Linux this needs Sysmon for Linux (or auditd EXECVE mapped to Image/CommandLine/ParentImage). Adjust earliest to match the schedule.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- CVE-2026-134815 Vulnerable [indicator] / [indicator] Version Installed or Pinned (locked: unlock with TL Creds)
- Node.js to git to Shell/Interpreter/Downloader Process Chain ([indicator] RCE Post-Exploitation) (locked: unlock with TL Creds)
- Payload Download or Reverse Shell Launched by Shell Spawned from git (Command-and-Control Staging) (locked: unlock with TL Creds)
- Git Remote-Helper Execution Options (--exec/--upload-pack/--receive-pack/ext transport) on Remote Sub-commands (locked: unlock with TL Creds)
- Persistence Commands Executed by Shell Spawned from git (Post-Exploitation Following [indicator] RCE) (locked: unlock with TL Creds)
- Project File and Dependency Tampering by Shell Spawned from git (Data Manipulation) (locked: unlock with TL Creds)
- CVE-2026-134815 Post-Exploitation - Program Executed by git --exec Remote Helper (locked: unlock with TL Creds)
- Credential and Secret File Access by Shell Spawned from git ([indicator] RCE Collection) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (1 of 5)

Defanged, TLP:CLEAR.

- File hash: `cee17ab3419f93cae91801de0d5112f8ee90ec6b`

Full set of 5 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Critical Node.js simple-git Library Vulnerability Enables Remote Code Execution Attacks (Cyber Security News)](https://cybersecuritynews.com/node-js-simple-git-library-flaw/)
- [Upwind: simple-git argument injection via --exec enables host command execution (CVE-2026-134815)](https://www.upwind.io/blog/threat-post/cve-2026-134815-simple-git-argument-injection-via-exec-enables-host-command-execution)
- [NVD: CVE-2026-134815](https://nvd.nist.gov/vuln/detail/CVE-2026-134815)
- [simple-git 4.1.0 release notes (git-js)](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- [GHSA-hffm-xvc3-vprc: simple-git Remote Code Execution (CVE-2026-6951)](https://github.com/advisories/GHSA-hffm-xvc3-vprc)
- [CodeAnt AI: simple-git RCE via case-sensitivity bypass (CVE-2026-28292)](https://codeant.ai/security-research/simple-git-remote-code-execution-cve-2026-28292)
- [Acunetix: CVE-2022-24433 simple-git argument injection](https://www.acunetix.com/vulnerabilities/sca/cve-2022-24433-vulnerability-in-npm-package-simple-git/)
- [OSV: GHSA-jcxm-m3jx-f287 simple-git option-parsing bypass (CVE-2026-28291)](https://osv.dev/GHSA-jcxm-m3jx-f287)
- [Vulert: CVE-2026-102827 simple-git unsafe operations plugin bypass](https://vulert.com/vuln-db/CVE-2026-102827)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6759
