simple-git before 4.1.0 Argument Injection via --exec Option in ls-remote
- State
- Published
- Severity
- 9.2 Critical
- Published
- Nov 22, 2026
- Updated
- Nov 22, 2026
- Reserved
- Nov 22, 2026
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.
| Product | Versions |
|---|---|
| simple-git steveukx | before 4.1.0 Affected |
| @simple-git/argv-parser steveukx | before 3.0.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.2 Critical | VulnCheck | |
| 3.1 | 8.1 High | VulnCheck |
Weaknesses
- CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
- https://github.com/steveukx/git-js/commit/c8ee6bb4dd0c1259af31da821dc68d74ff5d6f10Patch
- simple-git simple-git%404.1.0 Release NotesRelease Notes
- simple-git %40simple-git%2Fargv-parser%403.0.0 Release NotesRelease Notes
- https://github.com/steveukx/git-js/blob/simple-git%404.0.2/packages/argv-parser/src/vulnerabilities/detect-vulnerable-flags.ts#L71Technical Details
- VulnCheck Advisory: simple-git before 4.1.0 Argument Injection via --exec Option in ls-remoteThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.