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

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published: 2022-05-13T20:00:19.528859Z

Updated: 2024-09-16T17:19:17.377Z

Reserved: 2022-02-24T00:00:00

Link: CVE-2022-25865

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2022-05-13T20:15:08.243

Modified: 2023-08-08T14:21:49.707

Link: CVE-2022-25865

cve-icon Redhat

No data.