{"schemaVersion":3,"id":"CVE-2022-24066","aliases":["GHSA-28xr-mwxg-3qc8"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-04-01T20:00:16.930Z","modified":"2024-09-16T21:08:34.077Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03896,"percentile":0.90152,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.03896},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03896,"percentile":0.90152}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03896,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03896,"percentile":0.90152}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_LIRANTAL_A930D902294B833514E821102316426B","name":"A930D902294B833514E821102316426B","source":"github","url":"https://gist.github.com/lirantal/a930d902294b833514e821102316426b","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","description":"The product constructs a string for a command to be executed by a separate component\nin another control sphere, but it does not properly delimit the\nintended arguments, options, or switches within that command string.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/88.html"}],"affected":[{"vendor":"Npm","product":"simple-git","name":"simple-git","label":"simple-git","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/simple-git","purlType":"npm","versions":[{"text":"< 3.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.5.0","eol":null,"hubHref":null},{"vendor":"simple-git_project","product":"simple-git","name":"simple-git","label":"simple-git","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.5.0","eol":null,"hubHref":"/vendor/simple-git_project/simple-git"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306","label":"snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820","label":"snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2434820","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://gist.github.com/lirantal/a930d902294b833514e821102316426b","label":"gist.github.com/lirantal/a930d902294b833514e821102316426b","hostname":"gist.github.com","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://github.com/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5","label":"github.com/steveukx/git-js/commit/2040de601c894363050fef9f28af367b169a56c5","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24066","label":"nvd.nist.gov/vuln/detail/CVE-2022-24066","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/steveukx/git-js","label":"github.com/steveukx/git-js","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/steveukx/git-js/releases/tag/simple-git%403.5.0","label":"github.com/steveukx/git-js/releases/tag/simple-git%403.5.0","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-04-01T20:00:16.930Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T21:08:34.077Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:23:27.393Z","stale":false,"partial":false}}