CVE-2022-25865
published high CVSS 3.1 · 8.1Command Injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | workspace-toolsunspecified to < 0.18.4 | Affected | Not stated | snyk |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | workspace-tools | unspecified to < 0.18.4 (affected · custom) | snyk · cna |
Weaknesses
1- Command Injection
References
3Provider assertions
2snyk · cna
Command Injection
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4cf4bbd7ce89fa9a565fd4d55fc5c5a7541ff0ae21c2060c66368e6f7a0ff9fe
- Ingested
- 23 Sep 2026, 07:59:05 UTC
- Source record
- Official CVE record