Vulnerability · Published May 13, 2022 · Assigned by snyk

CVE-2022-25865Command Injection

High 8.1

In plain English

A high-severity security flaw in workspace-tools. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.7% (higher than 94% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)6.7%top 6.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmworkspace-tools0.18.4GHSA-5875-m6jq-vf78

Affected products (as reported)

VendorProductVersions
n/a workspace-tools unspecified – before 0.18.4

References