PT-2022-17575 · Unknown · Workspace-Tools

Alessio Della Libera

·

Published

2022-05-13

·

Updated

2023-08-08

·

CVE-2022-25865

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions workspace-tools versions prior to 0.18.4
Description The issue concerns Command Injection via git argument injection. When the fetchRemoteBranch(remote: string, remoteBranch: string, cwd: string) function is called, both the remote and remoteBranch parameters are passed to the git fetch subcommand in a way that allows additional flags to be set, which can be used to perform a command injection.
Recommendations For versions prior to 0.18.4, update to version 0.18.4 or later to resolve the issue. As a temporary workaround, consider restricting the use of the fetchRemoteBranch() function until a patch is available. Avoid using the remote and remoteBranch parameters in the affected fetchRemoteBranch() function until the issue is resolved.

Exploit

Fix

Argument Injection

Command Injection

Weakness Enumeration

Related Identifiers

CVE-2022-25865
GHSA-5875-M6JQ-VF78
SNYK-JS-WORKSPACETOOLS-2421201

Affected Products

Workspace-Tools