{"cve":"CVE-2022-25865","nvd":{"published":"2022-05-13T20:15:08.243","modified":"2026-06-17T04:34:24.830","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-88"],"references":["https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978","https://github.com/microsoft/workspace-tools/pull/103","https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201","https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978","https://github.com/microsoft/workspace-tools/pull/103"],"products":["microsoft:workspace-tools"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2022-25865","score":0.06694,"percentile":0.93909,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5875-m6jq-vf78","url":"https://osv.dev/vulnerability/GHSA-5875-m6jq-vf78","summary":"Command injection in workspace-tools","modified":"2026-07-08T06:49:42.022773950Z","packages":[{"ecosystem":"npm","name":"workspace-tools","purl":"pkg:npm/workspace-tools","ranges":["<0.18.4"],"fixed":["0.18.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}