CVE-2022-25865 json
Command Injection
published 4y ago modified 4mo ago also GHSA-5875-m6jq-vf78 , EUVD-2022-2532
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.7%
- EPSS 6.7% chance of exploitation in 30 days, percentile 93%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm workspace-tools 0.18.4
- n/a workspace-tools 0.18.4
- github.com/microsoft/workspace-tools@9bc7e65 commit
- github.com/microsoft/workspace-tools#103 pull request
Is CVE-2022-25865 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
6.69% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | workspace-tools | <0.18.4 |
0.18.4 |
Affected products
- n/a workspace-tools
Classification
References
-
github.com
/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978
web, patch, third-party-advisory
-
github.com
/microsoft/workspace-tools/pull/103
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-WORKSPACETOOLS-2421201
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-25865
advisory
-
github.com
/microsoft/workspace-tools
package
Sources
- CVE List CVE-2022-25865
- GitHub Advisory GHSA-5875-m6jq-vf78
- NVD CVE-2022-25865
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.