Skip to main content
← All vulnerabilities
CVE-2022-25865GHSA-5875-M6JQ-VF78SNYK-JS-WORKSPACETOOLS-2421201

Command Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.18.4
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a workspace-tools

    fixed in 0.18.4

  • workspace-toolsnpm

    fixed in 0.18.4

References 3

snyk.io

GitHub · microsoft/workspace-tools