{"id":"CVE-2022-25865","aliases":["GHSA-5875-m6jq-vf78","SNYK-JS-WORKSPACETOOLS-2421201"],"url":"https://o3.security/vulnerability/CVE-2022-25865","summary":"Command Injection","details":"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.","published":"2022-05-13T20:00:19.528Z","modified":"2026-07-15T01:49:04.376315893Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"workspace-tools","fixedVersion":"0.18.4"}],"fix":{"url":"https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978","label":"microsoft/workspace-tools@9bc7e65"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25865.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25865"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201"},{"type":"FIX","url":"https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978"},{"type":"FIX","url":"https://github.com/microsoft/workspace-tools/pull/103"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:04.376315893Z"}}