8.1high
Command Injection
- Severity
- 8.1high CVSS:3.1 by snyk
- Exploit likelihood
- 3.93% (higher than 90% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-28xr-mwxg-3qc8
Description
The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| simple-git | from unspecified before 3.5.0 | CVE List |
| simple-git (npm) | before 3.5.0 | GitHub Advisory Database |
| simple-git_project simple-git | before 3.5.0 | NVD |
All scores
| snyk | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover.
GitHub Advisory Database
simple-git (maintained as git-js named repository on GitHub) is a light weight interface for running git commands in any node.js application.The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of CVE-2022-24433 which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover. A fix was released in simple-git@3.5.0.
NVD (es)
El paquete simple-git versiones anteriores a 3.5.0, es vulnerable a una inyección de comandos debido a una corrección incompleta de [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) que sólo parchea contra el vector de ataque git fetch. Un uso similar de la función --upload-pack de git también es compatible con git clone, que la corrección anterior no cubría
References
| https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306 | patch, third-party-advisory, web | |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820 | patch, third-party-advisory, web | |
| https://gist.github.com/lirantal/a930d902294b833514e821102316426b | exploit, third-party-advisory, web | |
| https://github.com/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-24066 | advisory | |
| https://github.com/steveukx/git-js | package | |
| https://github.com/steveukx/git-js/releases/tag/simple-git%403.5.0 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-24066 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-28xr-mwxg-3qc8 changed 2025-01-14 | CC-BY-4.0 |
| NVD | CVE-2022-24066 changed 2026-06-17 | Public domain |