Vulnerability Details : 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.
Products affected by CVE-2022-25865
- cpe:2.3:a:microsoft:workspace-tools:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-25865
0.28%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 68 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-25865
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
8.1
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
2.2
|
5.9
|
Snyk |
CWE ids for CVE-2022-25865
-
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-25865
-
https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201
Command Injection in workspace-tools | CVE-2022-25865 | SnykExploit;Third Party Advisory
-
https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978
Fix git fetch - addresses a potential security concern regarding git … · microsoft/workspace-tools@9bc7e65 · GitHubPatch;Third Party Advisory
-
https://github.com/microsoft/workspace-tools/pull/103
Fix git fetch - addresses a potential security concern regarding git fetch by kenotron · Pull Request #103 · microsoft/workspace-tools · GitHubPatch;Third Party Advisory
Jump to