cve.bz

CVE-2022-25865

9.8 criticalEPSS 6.7%

Critical (9.8) in microsoft workspace-tools. EPSS 6.7% chance of exploitation in the next 30 days. Fixed in workspace-tools 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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
6.7% chance of exploitation in the next 30 days; higher than 93% of CVEs (scores of 2026-10-31)
CWE
CWE-88
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5875-m6jq-vf78npmworkspace-tools<0.18.40.18.4

References

Check your stackJSON