GHSA-5875-m6jq-vf78

Suggest an improvement
Source
https://github.com/advisories/GHSA-5875-m6jq-vf78
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-5875-m6jq-vf78/GHSA-5875-m6jq-vf78.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-5875-m6jq-vf78
Aliases
Published
2022-05-14T00:01:08Z
Modified
2025-01-08T14:12:01.908666Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Command injection in workspace-tools
Details

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.

Database specific
{
    "github_reviewed_at": "2022-05-25T20:12:44Z",
    "nvd_published_at": "2022-05-13T20:15:00Z",
    "github_reviewed": true,
    "severity": "CRITICAL",
    "cwe_ids": [
        "CWE-77"
    ]
}
References

Affected packages

npm / workspace-tools

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.18.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-5875-m6jq-vf78/GHSA-5875-m6jq-vf78.json"