Vulnerability · Published May 13, 2022 · Assigned by snyk
CVE-2022-25865Command Injection
High 8.1
In plain English
A high-severity security flaw in workspace-tools. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.7% (higher than 94% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.1High
Exploit odds (30 days)6.7%top 6.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | workspace-tools | 0.18.4 | GHSA-5875-m6jq-vf78 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | workspace-tools | unspecified – before 0.18.4 |
References
- https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201 x_refsource_MISC
- https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978 x_refsource_MISC
- https://github.com/microsoft/workspace-tools/pull/103 x_refsource_MISC