{"id":"CVE-2022-24066","aliases":["CVE-2022-24066","GHSA-28xr-mwxg-3qc8"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection","summary":"The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover.","source":"cvelist"},{"lang":"en","text":"`simple-git` (maintained as [git-js](https://github.com/steveukx/git-js) named repository on GitHub) is a light weight interface for running git commands in any node.js application.The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover. A fix was released in simple-git@3.5.0.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete simple-git versiones anteriores a 3.5.0, es vulnerable a una inyección de comandos debido a una corrección incompleta de [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) que sólo parchea contra el vector de ataque git fetch. Un uso similar de la función --upload-pack de git también es compatible con git clone, que la corrección anterior no cubría","source":"nvd"}],"published":"2022-04-01T20:00:16.930Z","modified":"2026-06-17T04:31:14.780Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-88"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"3.5.0","status":"affected"}],"product":"simple-git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.5.0"}],"ecosystem":"npm","package":"simple-git","purl":"pkg:npm/simple-git","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.5.0"}],"vendor":"simple-git_project","product":"simple-git","cpe":"cpe:2.3:a:simple-git_project:simple-git:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/lirantal/a930d902294b833514e821102316426b","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24066","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/steveukx/git-js","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/steveukx/git-js/releases/tag/simple-git%403.5.0","tags":["web"],"sources":["ghsa"]}],"credits":["Liran Tal"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24066","url":"https://www.cve.org/CVERecord?id=CVE-2022-24066","licence":"CVE Terms of Use","modified":"2024-09-16T21:08:34.077Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-28xr-mwxg-3qc8","url":"https://github.com/advisories/GHSA-28xr-mwxg-3qc8","licence":"CC-BY-4.0","modified":"2025-01-14T10:57:24.837Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24066","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24066","licence":"Public domain","modified":"2026-06-17T04:31:14.780Z"}],"updatedAt":"2026-11-25T22:58:10.363Z","epss":{"score":0.03928,"percentile":0.90618,"date":"2026-12-01T12:00:22.000Z"}}