CVE-2022-24437
CRITICAL9.8EPSS 10.4%OS Command Injection in git-pull-or-clone
Published: 5/3/2022Modified: 3/13/2026
Description
The package git-pull-or-clone before 2.0.2 is 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. ## Credits Credit @lirantal for discovering this vulnerability.
Affected packages (1)
- npm/git-pull-or-clonefrom 0, < 2.0.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-24437
- PATCHhttps://github.com/feross/git-pull-or-clone
- WEBhttps://gist.github.com/lirantal/327e9dd32686991b5a1fa6341aac2e7b
- WEBhttps://github.com/feross/git-pull-or-clone/commit/f9ce092be13cc32e685dfa26e7705e9c6e3108a3
- WEBhttps://snyk.io/vuln/SNYK-JS-GITPULLORCLONE-2434307