# CVE-2026-134815: simple-git before 4.1.0 Argument Injection via --exec Option in ls-remote

> Attackers influencing arguments to simple-git listRemote or raw can inject --exec to run commands on the host, bypassing allowUnsafePack.

- **Severity:** Critical 9.2 (`CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** Yes (`listRemote`, `raw`)
- **Fix available:** No
- **Published:** 22 Nov 2026
- **Updated:** 22 Nov 2026
- **Also known as:** GHSA-24pq-g7mp-w876

## What is CVE-2026-134815?

CVE-2026-134815 is a critical command injection vulnerability in steveukx @simple-git/argv-parser, published on 22 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

simple-git before 4.1.0 contains an argument injection vulnerability that allows attackers to bypass the allowUnsafePack guard by supplying the --exec option to non-push git operations. Attackers who influence arguments passed to listRemote() or raw() can inject --exec for ls-remote, archive, fetch-pack or send-pack to execute commands on the host.

Weakness: CWE-88 (Improper Neutralization of Argument Delimiters in a Command)

## Which versions are affected by CVE-2026-134815?

2 open source packages ship an affected version, including simple-git and %40simple-git/argv-parser.

An affected version is only exploitable if your software calls listRemote or raw. Many projects that include it are not exposed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `simple-git` | npm | `pkg:npm/simple-git` | All versions | 4.1.0 |
| `%40simple-git/argv-parser` | npm | `pkg:npm/%40simple-git/argv-parser` | All versions | 3.0.0 |

## How do I fix CVE-2026-134815?

Upgrade simple-git to 4.1.0 or later.

## Is CVE-2026-134815 being exploited?

There is no known exploitation of CVE-2026-134815 in the wild and no public exploit code.

Public exploit code:

- CVE-2026-134815 (CVSS 9.2) simple-git Argument Injection Red/Blue Team Toolkit. RCE testing, reverse shell, post-exploitation, mass scanning, educational credential harvesting, safe PoC probes, version checks, JSON/CSV reporting. Python & Node.js. Built for authorized security testing. Educational Ethical & Safety Use Only. (github_poc): https://github.com/tc4dy/CVE-2026-134815-PoC-Exploit
- simple-git <4.1.0: allowUnsafePack blocks --exec only for push — injected --exec on ls-remote/archive/fetch-pack/send-pack runs an attacker-named program. Real npm 4.0.0 vs 4.1.0 (c8ee6bb): marker executed via raw()/listRemote() on vuln, rejected on fixed (github_poc): https://github.com/googlesky/CVE-2026-134815
- PoC for CVE-2026-134815 — simple-git npm Argument Injection RCE (CVSS 8.1) (github_poc): https://github.com/cveForge/CVE-2026-134815

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-134815 and fix it if it is affected.

What it is: CVE-2026-134815 is a critical command injection vulnerability in steveukx @simple-git/argv-parser, published on 22 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-134815 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software calls listRemote or raw. Many projects that include it are not exposed.

Affected packages and fixed versions:
- simple-git (npm): affected all versions; fixed in 4.1.0
- %40simple-git/argv-parser (npm): affected all versions; fixed in 3.0.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
   If an affected version is present, also search the code for calls to listRemote or raw and report whether any exist.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-134815/ (Markdown: https://insights.sbomify.com/CVE-2026-134815/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-134815
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-134815
- OSV: https://osv.dev/vulnerability/CVE-2026-134815

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-134815/
Summaries are generated and may contain mistakes; the official description above is the record.
