{"id":"EUVD-2022-2532","enisaUuid":"ca8769bd-d759-3af1-ab0e-257b32c8a6ab","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.","datePublished":"May 13, 2022, 8:00:19 PM","dateUpdated":"Sep 16, 2024, 5:19:17 PM","baseScore":8.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","references":"https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201\nhttps://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978\nhttps://github.com/microsoft/workspace-tools/pull/103\n","aliases":"CVE-2022-25865\nGHSA-5875-m6jq-vf78\n","assigner":"snyk","epss":6.69,"enisaIdProduct":[{"id":"d7daa089-357a-37fe-805c-0c72d41bc489","product":{"name":"workspace-tools","vendor":{"name":"n/a"}},"product_version":"unspecified \u003c0.18.4"}],"enisaIdVendor":[{"id":"9ab88584-ad42-3390-9fde-a3ca10a61eb3","vendor":{"name":"n/a"}}],"enisaIdVulnerability":[{"id":"475ca29f-da38-36c6-981a-d36f013ca452","vulnerability":{"id":"CVE-2022-25865","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.","datePublished":"May 13, 2022, 8:00:19 PM","dateUpdated":"Sep 16, 2024, 5:19:17 PM","status":"PUBLISHED","baseScore":8.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","references":"https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201\nhttps://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978\nhttps://github.com/microsoft/workspace-tools/pull/103\n","enisa_id":"EUVD-2022-2532\n","assigner":"snyk","epss":6.69,"dataProcessed":"Nov 24, 2026, 7:21:36 AM","vulnerabilityProduct":[{"id":"74aad358-5e8f-3657-9f36-1f7e132fa7a8","product":{"name":"workspace-tools","vendor":{"name":"n/a"}},"product_version":"unspecified \u003c0.18.4"}],"vulnerabilityVendor":[{"id":"3a9844aa-f3ec-364f-959e-476a06da3a4d","vendor":{"name":"n/a"}}]}},{"id":"fdb1425a-f167-346d-bd54-da4732e722ed","vulnerability":{"id":"GHSA-5875-m6jq-vf78","description":"Command injection in workspace-tools","datePublished":"May 14, 2022, 12:01:08 AM","dateUpdated":"May 25, 2022, 8:12:44 PM","baseScore":null,"references":"https://nvd.nist.gov/vuln/detail/CVE-2022-25865\nhttps://github.com/microsoft/workspace-tools/pull/103\nhttps://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978\nhttps://github.com/microsoft/workspace-tools\nhttps://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201\n","enisa_id":"EUVD-2022-2532\n","aliases":"GHSA-5875-m6jq-vf78\nCVE-2022-25865\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:16:19 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}