Vulnerability in Simple-Git Project
CVE-2022-24433
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.037, 89.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Simple-Git Project
- Simple-Git — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (dellalibera/dellalibera). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199 (Patch, Third Party Advisory)
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2421245 (Patch, Third Party Advisory)
- github.com/steveukx/git-js/pull/767 (Patch, Third Party Advisory)
- github.com/steveukx/git-js/releases/tag/simple-git@3.3.0 (Patch, Third Party Advisory)