{"containers":{"cna":{"affected":[{"product":"workspace-tools","vendor":"n/a","versions":[{"lessThan":"0.18.4","status":"affected","version":"unspecified","versionType":"custom"}]}],"credits":[{"lang":"en","value":"Alessio Della Libera of Snyk Research Team"}],"datePublic":"2022-05-13T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","exploitCodeMaturity":"PROOF_OF_CONCEPT","integrityImpact":"HIGH","privilegesRequired":"NONE","remediationLevel":"NOT_DEFINED","reportConfidence":"NOT_DEFINED","scope":"UNCHANGED","temporalScore":7.7,"temporalSeverity":"HIGH","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Command Injection","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2022-05-13T20:00:19.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","shortName":"snyk"},"references":[{"tags":["x_refsource_MISC"],"url":"https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201"},{"tags":["x_refsource_MISC"],"url":"https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978"},{"tags":["x_refsource_MISC"],"url":"https://github.com/microsoft/workspace-tools/pull/103"}],"title":"Command Injection","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-05-13T20:00:06.468304Z","ID":"CVE-2022-25865","STATE":"PUBLIC","TITLE":"Command Injection"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"workspace-tools","version":{"version_data":[{"version_affected":"<","version_value":"0.18.4"}]}}]},"vendor_name":"n/a"}]}},"credit":[{"lang":"eng","value":"Alessio Della Libera of Snyk Research Team"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Command Injection"}]}]},"references":{"reference_data":[{"name":"https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201"},{"name":"https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978","refsource":"MISC","url":"https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978"},{"name":"https://github.com/microsoft/workspace-tools/pull/103","refsource":"MISC","url":"https://github.com/microsoft/workspace-tools/pull/103"}]}}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-03T04:49:44.424Z"},"title":"CVE Program Container","references":[{"tags":["x_refsource_MISC","x_transferred"],"url":"https://snyk.io/vuln/SNYK-JS-WORKSPACETOOLS-2421201"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/microsoft/workspace-tools/commit/9bc7e65ce497f87e1f363fd47b8f802f3d3cd978"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/microsoft/workspace-tools/pull/103"}]}]},"cveMetadata":{"assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","assignerShortName":"snyk","cveId":"CVE-2022-25865","datePublished":"2022-05-13T20:00:19.528Z","dateReserved":"2022-02-24T00:00:00.000Z","dateUpdated":"2024-09-16T17:19:17.377Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"}