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

Source: https://aplosec.si/cve/CVE-2026-134815/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-134815

Critical 9.2 · Reported · Fixed in 4.1.0 · CWE-88 · npm

# simple-git before 4.1.0 Argument Injection via --exec Option in ls-remote

CVE-2026-134815 · published 2026-11-22

In plain words: this type of bug lets someone run their own commands on the server (command injection). A fixed release is listed.

## Summary

CVE-2026-134815 affects simple-git (npm) < 4.1.0: Argument Injection via --exec Option in ls-remote (CWE-88). Fixed in 4.1.0. CVSS 4.0 base score 9.2 (Critical), assigned by VulnCheck. Published 2026-11-22 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade simple-git to 4.1.0 or later. Releases in the affected range (< 4.1.0) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-11-22 CVE published

## References

- [Releasehttps://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)

- [Releasehttps://github.com/steveukx/git-js/releases/tag/%40simple-git%2Fargv-parser%403.0.0](https://github.com/steveukx/git-js/releases/tag/%40simple-git%2Fargv-parser%403.0.0)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/simple-git-before-4.1.0-argument-injection-via-exec-option-in-ls-remote](https://www.vulncheck.com/advisories/simple-git-before-4.1.0-argument-injection-via-exec-option-in-ls-remote)

- [Fix commithttps://github.com/steveukx/git-js/commit/c8ee6bb4dd0c1259af31da821dc68d74ff5d6f10](https://github.com/steveukx/git-js/commit/c8ee6bb4dd0c1259af31da821dc68d74ff5d6f10)

- [Vulnerable codehttps://github.com/steveukx/git-js/blob/simple-git%404.0.2/packages/argv-parser/src/vulnerabilities/detect-vulnerable-flags.ts#L71](https://github.com/steveukx/git-js/blob/simple-git%404.0.2/packages/argv-parser/src/vulnerabilities/detect-vulnerable-flags.ts#L71)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-134815](https://www.cve.org/CVERecord?id=CVE-2026-134815)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-134815](https://nvd.nist.gov/vuln/detail/CVE-2026-134815)

**Severity:** Critical 9.2 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-134815)

**Package:** simple-git

**Ecosystem:** npm

**Affected:** < 4.1.0

**Fixed:** 4.1.0

**Weakness:** CWE-88

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
