CVE-2022-24433Simple-git Project Simple-git
Critical 9.8 No auth needed
Follow: this CVE · Simple-git Project · Simple-git Project Simple-git We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 5.0% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Mar 11, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-88
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
The package simple-git before 3.3.0 are vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options it was possible to get arbitrary command execution.
What to do
- Apply the vendor's security update for Simple-git.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | simple-git |
< 3.3.0 |
3.3.0 |
npm install simple-git@3.3.0 |
Per OSV / GitHub Advisories (GHSA-3f95-r44v-8mrg). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| simple-git_project | simple-git | < 3.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- snyk.io Patch Third Party Advisory
- snyk.io Patch Third Party Advisory