CVE-2022-24437
CRITICAL 9.8CVSS 3.1OS Command Injection in git-pull-or-clone
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.
- Published
- 1 May 2022
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-77CWE-78CWE-88
- Also known as
- GHSA-3x62-x456-q2vmSNYK-JS-GITPULLORCLONE-2434307
- Sources
- NVDJSONOSV GHSA-3x62-x456-q2vmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | git-pull-or-clone_project | git-pull-or-clonecpe:2.3:a:git-pull-or-clone_project:git-pull-or-clone:*:*:*:*:*:node.js:*:* |
< 2.0.2 | 2.0.2 |
| OSV | npm | git-pull-or-clone | < 2.0.2 | 2.0.2 |
References
- https://gist.github.com/lirantal/327e9dd32686991b5a1fa6341aac2e7b · Exploit, Third Party Advisory, WEB
- https://github.com/feross/git-pull-or-clone/commit/f9ce092be13cc32e685dfa26e7705e9c6e3108a3 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-GITPULLORCLONE-2434307 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24437 · ADVISORY
- https://github.com/feross/git-pull-or-clone · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 May 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 May 2022)