CVE-2022-25865

Command Injection

Published May 13, 2022 CVSS 3.1 · 8.1 High EPSS 6.7% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-2532 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.
Github GHSA Github GHSA GHSA-5875-m6jq-vf78 Command injection in workspace-tools
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 16, 2024, 5:19 PM
Reserved
Feb 24, 2022, 12:00 AM
Status
Modified
Published
May 13, 2022, 8:15 PM
Modified
Jun 17, 2026, 4:34 AM