CVE-2022-25865
Command injection in workspace-tools
9.8
CRITICAL
CVSS 3.1
EPSS 1.2%
Description
The package workspace-tools before 0.18.4 is 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.
How to fix CVE-2022-25865
To remediate CVE-2022-25865, upgrade the affected package to a fixed version below.
- —upgrade to 0.18.4 or later
Is CVE-2022-25865 being exploited?
Low — EPSS is 1.2%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 0.18.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |