{"id":"CVE-2022-24433","published":"2022-03-11T16:15:14Z","modified":"2024-09-16T21:57:22Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"The package simple-git before 3.3.0 are vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options it was possible to get arbitrary command execution.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03707,"percentile":0.89708,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2421245","tags":["x_refsource_MISC"]},{"url":"https://github.com/steveukx/git-js/pull/767","tags":["x_refsource_MISC"]},{"url":"https://github.com/steveukx/git-js/releases/tag/simple-git%403.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":23.6,"factors":[{"name":"EPSS percentile","points":17.94},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"simple-git","versions":[">= unspecified, < 3.3.0"]}],"affected":[{"ecosystem":"npm","package":"simple-git","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-3f95-r44v-8mrg"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-1286","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-steveukx-simple-git-cve-2022-24433","children":[{"from":"CVE-2022-24433","to":"CVE-2022-24066","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of CVE-2022-24433 which only patches against the git fetch attack vector.","from":"CVE.org","in":"CVE-2022-24066"},{"kind":"version-step","provenance":"source","package":"npm:simple-git","fromFixed":"3.3.0","toFixed":"3.5.0","daysApart":21}]}],"packageHistory":[{"cve":"CVE-2022-24433","published":"2022-03-11","fixed":"3.3.0","kev":false},{"cve":"CVE-2022-24066","published":"2022-04-01","fixed":"3.5.0","kev":false},{"cve":"CVE-2022-25912","published":"2022-12-12","fixed":"3.15.0","kev":false},{"cve":"CVE-2022-25860","published":"2023-01-24","fixed":"3.16.0","kev":false}],"package":"npm:simple-git"}}