{"id":"CVE-2022-25865","published":"2022-05-13T20:00:19Z","modified":"2024-09-16T17:19:17Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"The package workspace-tools before 0.18.4 are vulnerable to Command Injection via git argument injection. When calling the fetchRemoteBranch(remote: string, remoteBranch: string, cwd: string) function, both the remote and remoteBranch parameters are passed to the git fetch subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.06694,"percentile":0.94065,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/workspace-tools/pull/103","tags":["x_refsource_MISC"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":18.81},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"workspace-tools","versions":[">= unspecified, < 0.18.4"]}],"affected":[{"ecosystem":"npm","package":"workspace-tools","vulnerableRanges":["<0.18.4"],"patched":["0.18.4"],"from":["GHSA-5875-m6jq-vf78"],"provenance":"source"}],"summary":{"text":"The flaw is a command injection in the workspace-tools package before 0.18.4, located in its fetchRemoteBranch function, where the remote and remoteBranch parameters are passed to the git fetch subcommand in a way that allows additional flags to be set. An attacker who can supply those parameters can use the injected flags to execute arbitrary commands, and the attack vector reflects network-reachable exploitation with no privileges or user interaction required, though it is considered high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:36:25Z"},"euvd":{"id":"EUVD-2022-2532","exploited":false,"provenance":"source"}}