CVE-2022-25865
published 2022-05-13CVE-2022-25865: The package workspace-tools before 0.18.4 are vulnerable to Command Injection via git argument injection. When calling the fetchRemoteBranch(remote: string…
PriorityP265critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
6.89%
93.3th percentile
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
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| microsoft | workspace-tools | < 0.18.4 | 0.18.4 |
| microsoft | workspace-tools | >= 0 < 0.18.4 | 0.18.4 |
| microsoft | workspace-tools | >= unspecified < 0.18.4 | 0.18.4 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Command injection in workspace-tools
osv·2022-05-14
CVE-2022-25865 [CRITICAL] Command injection in workspace-tools
Command injection in workspace-tools
The package workspace-tools before 0.18.4 is 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.
GHSA
Command injection in workspace-tools
ghsa·2022-05-14
CVE-2022-25865 [CRITICAL] CWE-77 Command injection in workspace-tools
Command injection in workspace-tools
The package workspace-tools before 0.18.4 is 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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978https://github.com/microsoft/workspace-tools/pull/103https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978https://github.com/microsoft/workspace-tools/pull/103https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201
2022-05-13
Published