Vulnerability in Microsoft Workspace-Tools
CVE-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, 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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.067, 94.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Microsoft Workspace-Tools
- Workspace-Tools — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, dellalibera/dellalibera, martinthong125/POC-workspace-tools). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201 (Exploit, Third Party Advisory)
- github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3… (Patch, Third Party Advisory)
- github.com/microsoft/workspace-tools/pull/103 (Patch, Third Party Advisory)