{"id":"CVE-2022-25860","published":"2023-01-24T05:00:02Z","modified":"2025-04-01T15:29:18Z","title":"Versions of the package simple-git before 3.16.0 are vulnerable to Remote Code Execution (RCE) via the clone()…","vendor":null,"product":null,"tier":"tail","description":{"text":"Versions of the package simple-git before 3.16.0 are vulnerable to Remote Code Execution (RCE) via the clone(), pull(), push() and listRemote() methods, due to improper input sanitization.\rThis vulnerability exists due to an incomplete fix of [CVE-2022-25912](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221).\r\r","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/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02712,"percentile":0.85954,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3177391","tags":[]},{"url":"https://github.com/steveukx/git-js/pull/881/commits/95459310e5b8f96e20bb77ef1a6559036b779e13","tags":[]},{"url":"https://github.com/steveukx/git-js/commit/ec97a39ab60b89e870c5170121cd9c1603cc1951","tags":[]}],"priority":{"score":22.9,"factors":[{"name":"EPSS percentile","points":17.19},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"simple-git","versions":["< 3.16.0"]}],"affected":[{"ecosystem":"npm","package":"simple-git","vulnerableRanges":["<3.16.0"],"patched":["3.16.0"],"from":["GHSA-9w5j-4mwv-2wj8"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-0435","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-steveukx-simple-git-cve-2022-24433","parents":[{"from":"CVE-2022-25912","to":"CVE-2022-25860","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This vulnerability exists due to an incomplete fix of CVE-2022-25912.","from":"CVE.org","in":"CVE-2022-25860"},{"kind":"version-step","provenance":"source","package":"npm:simple-git","fromFixed":"3.15.0","toFixed":"3.16.0","daysApart":43},{"kind":"same-code","provenance":"machine","files":["packages/test-utils/src/expectations.ts"],"commits":["https://github.com/steveukx/git-js/commit/95459310e5b8f96e20bb77ef1a6559036b779e13","https://github.com/steveukx/git-js/commit/ec97a39ab60b89e870c5170121cd9c1603cc1951","https://github.com/steveukx/git-js/commit/774648049eb3e628379e292ea172dccaba610504"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.67,"basis":"same package + description similarity"}]}],"children":[{"from":"CVE-2022-25860","to":"CVE-2026-28291","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"The flaw stems from an incomplete fix for CVE-2022-25860, as Git's flexible option parsing allows numerous character combinations (e.g., -vu, -4u, -nu) to circumvent the regular-expression-based blocklist in the unsafe operations plugin.","from":"CVE.org","in":"CVE-2026-28291"},{"kind":"osv-related","provenance":"source","id":"GHSA-jcxm-m3jx-f287","via":"reference","url":"https://www.cve.org/CVERecord?id=CVE-2022-25860"}]},{"from":"CVE-2022-25860","to":"CVE-2026-28292","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"…git commands in any node.js application, has an issue in versions 3.15.0 through 3.32.2 that allows an attacker to bypass two prior CVE fixes (CVE-2022-25860 and CVE-2022-25912) and achieve full remote code execution on the host machine.","from":"CVE.org","in":"CVE-2026-28292"}]}],"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},{"cve":"CVE-2026-28291","published":"2026-04-13","fixed":"3.32.0","kev":false},{"cve":"CVE-2026-28292","published":"2026-03-10","fixed":"3.32.3","kev":false},{"cve":"CVE-2026-6951","published":"2026-04-25","fixed":"3.36.0","kev":false}],"package":"npm:simple-git"}}