CVE-2022-25865

published 13 May 2022 · updated 16 Sep 2024

Command Injection

8.1HighCVSS 8.1EPSS 7%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 7%. Fixed in 0.18.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<0.18.40.18.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-25865 severity on Zeptric[![CVE-2022-25865](https://zeptric.io/badge/cve/CVE-2022-25865.svg)](https://zeptric.io/cve/CVE-2022-25865)