CVE-2022-25865 – workspace-tools
Package
Manager: npm
Name: workspace-tools
Vulnerable Version: >=0 <0.18.4
Severity
Level: Critical
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.01516 pctl0.80542
Details
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.
Metadata
Created: 2022-05-14T00:01:08Z
Modified: 2022-05-25T20:12:44Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-5875-m6jq-vf78/GHSA-5875-m6jq-vf78.json
CWE IDs: ["CWE-77"]
Alternative ID: GHSA-5875-m6jq-vf78
Finding: F422
Auto approve: 1