VulnerabilityModified
CVE-2022-24433
The package simple-git before 3.3.0 are vulnerable to Command Injection via argument injection.
CRITICAL 9.8EPSS 3.51%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.51%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 3.51% probability · 89th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-88
- Affected
- simple-git project/simple-git
- Source
- report@snyk.io
References
- https://github.com/steveukx/git-js/pull/767Patch, Third Party Advisory
- https://github.com/steveukx/git-js/releases/tag/simple-git%403.3.0Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2421245Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199Patch, Third Party Advisory
- https://github.com/steveukx/git-js/pull/767Patch, Third Party Advisory
- https://github.com/steveukx/git-js/releases/tag/simple-git%403.3.0Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2421245Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199Patch, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.