CVE-2022-24066 json
Command Injection
published 2022-04-01 4 y ago modified 2026-06-17 4 mo ago also GHSA-28xr-mwxg-3qc8 , EUVD-2022-1593
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.9%
- EPSS 3.9% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm simple-git 3.5.0
- n/a simple-git 3.5.0
Exploit prediction
3.90% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- gist.github.com https://gist.github.com/lirantal/a930d902294b833514e821102316426b referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | simple-git | <3.5.0 |
3.5.0 |
Affected products
- n/a simple-git
Classification
- Weakness
-
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
References
-
github.com
/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-SIMPLEGIT-2434306
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820
web, patch, third-party-advisory
-
gist.github.com
/lirantal/a930d902294b833514e821102316426b
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24066
advisory
-
github.com
/steveukx/git-js
package
-
github.com
/steveukx/git-js/releases/tag/simple-git%403.5.0
web
Sources
- CVE List CVE-2022-24066
- GitHub Advisory GHSA-28xr-mwxg-3qc8
- NVD CVE-2022-24066
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.