CVE-2022-24437 json
Command Injection
published 4y ago modified 4mo ago also GHSA-3x62-x456-q2vm , EUVD-2022-2257
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.7%
- EPSS 3.7% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
The package git-pull-or-clone before 2.0.2 are vulnerable to Command Injection due to the use of the --upload-pack feature of git which is also supported for git clone. The source includes the use of the secure child process API spawn(). However, the outpath parameter passed to it may be a command-line argument to the git clone command and result in arbitrary command injection.
Patch / fix
- npm git-pull-or-clone 2.0.2
- n/a git-pull-or-clone 2.0.2
Is CVE-2022-24437 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
3.74% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-GITPULLORCLONE-2434307 referenced PoC, tagged "exploit" by a source, unverified
- gist.github.com https://gist.github.com/lirantal/327e9dd32686991b5a1fa6341aac2e7b referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/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 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | git-pull-or-clone | <2.0.2 |
2.0.2 |
Affected products
- n/a git-pull-or-clone
Classification
References
-
github.com
/feross/git-pull-or-clone/commit/f9ce092be13cc32e685dfa26e7705e9c6e3108a3
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-GITPULLORCLONE-2434307
web, exploit, third-party-advisory
-
gist.github.com
/lirantal/327e9dd32686991b5a1fa6341aac2e7b
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24437
advisory
-
github.com
/feross/git-pull-or-clone
package
Sources
- CVE List CVE-2022-24437
- GitHub Advisory GHSA-3x62-x456-q2vm
- NVD CVE-2022-24437
Fencer Intel 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.