Vulnerability record · CVE-2022-25865 · published 13 May 2022
CVE-2022-25865: Microsoft workspace-tools argument injection vulnerability
Microsoft · Workspace Tools
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.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978 | PatchThird Party Advisory |
| https://github.com/microsoft/workspace-tools/pull/103 | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201 | ExploitThird Party Advisory |
| https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978 | PatchThird Party Advisory |
| https://github.com/microsoft/workspace-tools/pull/103 | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201 | ExploitThird Party Advisory |
Track CVE-2022-25865 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-25865), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.