CVE-2022-24437
CRITICAL9.8EPSS 10.4%OS Command Injection in git-pull-or-clone
發布日:2022/5/3修改日:2026/3/13
描述
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.
受影響套件(1)
- npm/git-pull-or-clonefrom 0, < 2.0.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| 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 |
參考連結(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