{"id":"CVE-2022-24437","published":"2022-05-01T15:20:15Z","modified":"2024-09-16T19:15:08Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03738,"percentile":0.90108,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-GITPULLORCLONE-2434307","tags":["x_refsource_MISC"]},{"url":"https://gist.github.com/lirantal/327e9dd32686991b5a1fa6341aac2e7b","tags":["x_refsource_MISC"]},{"url":"https://github.com/feross/git-pull-or-clone/commit/f9ce092be13cc32e685dfa26e7705e9c6e3108a3","tags":["x_refsource_MISC"]}],"priority":{"score":24.9,"factors":[{"name":"EPSS percentile","points":18.02},{"name":"CVSS severity","points":6.86}]},"affectedVersions":[{"vendor":"n/a","product":"git-pull-or-clone","versions":[">= unspecified, < 2.0.2"]}],"affected":[{"ecosystem":"npm","package":"git-pull-or-clone","vulnerableRanges":["<2.0.2"],"patched":["2.0.2"],"from":["GHSA-3x62-x456-q2vm"],"provenance":"source"}],"summary":{"text":"The git-pull-or-clone npm package, before version 2.0.2, contains a command injection flaw in how it handles its outpath parameter, which is passed to git clone and can be interpreted as a command-line argument, including git's --upload-pack option. An attacker who can supply a crafted outpath value to the package can achieve arbitrary command execution, with the request reaching the affected code over the network without authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:33:49Z"},"euvd":{"id":"EUVD-2022-2257","exploited":false,"provenance":"source"}}