{"api_version":"1","generated_at":"2026-04-21T09:01:48+00:00","cve":"CVE-2022-24066","urls":{"html":"https://cve.report/CVE-2022-24066","api":"https://cve.report/api/cve/CVE-2022-24066.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24066","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24066"},"summary":{"title":"CVE-2022-24066","description":"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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-04-01 20:15:00","updated_at":"2023-08-08 14:21:00"},"problem_types":["CWE-88"],"metrics":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Command Injection in org.webjars.npm:simple-git | CVE-2022-24066 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Command Injection in simple-git | CVE-2022-24066 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Prevent use of `--upload-pack` as a command in `git.clone` to avoid p… · steveukx/git-js@2040de6 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://gist.github.com/lirantal/a930d902294b833514e821102316426b","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Command Injection vulnerability in simple-git@3.4.0 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24066","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24066","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Liran Tal","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"24066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"simple-git_project","cpe5":"simple-git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-04-01T20:00:01.776777Z","ID":"CVE-2022-24066","STATE":"PUBLIC","TITLE":"Command Injection"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"simple-git","version":{"version_data":[{"version_affected":"<","version_value":"3.5.0"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Command Injection"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306","name":"https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306"},{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820","name":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820"},{"refsource":"MISC","url":"https://gist.github.com/lirantal/a930d902294b833514e821102316426b","name":"https://gist.github.com/lirantal/a930d902294b833514e821102316426b"},{"refsource":"MISC","url":"https://github.com/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5","name":"https://github.com/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},"credit":[{"lang":"eng","value":"Liran Tal"}]},"nvd":{"publishedDate":"2022-04-01 20:15:00","lastModifiedDate":"2023-08-08 14:21:00","problem_types":["CWE-88"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:simple-git_project:simple-git:*:*:*:*:*:node.js:*:*","versionEndExcluding":"3.5.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}