{"id":"CVE-2024-21531","aliases":["EUVD-2024-3122","GHSA-qwrq-vxvw-537r"],"status":"published","title":"git-shallow-clone Argument Injection vulnerability","description":"All versions of the package git-shallow-clone are vulnerable to Command injection due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00954,"percentile":0.61808,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-78","CWE-88"],"published":"2024-10-01T05:00:05Z","modified":"2026-06-17T07:09:41Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"git-shallow-clone","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.0.2"}]}]},{"source":"osv","ecosystem":"npm","package":"git-shallow-clone","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.0.2"}]}]}],"products":[{"vendor":"git","product":"git-shallow-clone"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-GITSHALLOWCLONE-3253853","tags":["web"]},{"url":"https://github.com/10uei011/git-shallow-clone/blob/master/index.js%23L27"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21531","tags":["advisory"]},{"url":"https://github.com/10uei011/git-shallow-clone/blob/master/index.js#L27","tags":["web"]},{"url":"https://github.com/advisories/GHSA-qwrq-vxvw-537r"},{"url":"https://github.com/10uei011/git-shallow-clone","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-21531","description":"All versions of the package git-shallow-clone are vulnerable to Command injection due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function.","status":"published","published":"2024-10-01T05:00:05.367Z","modified":"2024-11-07T15:26:05.308Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","level":"medium","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:34:04.681315Z"}],"euvd":[{"id":"EUVD-2024-3122","description":"All versions of the package git-shallow-clone are vulnerable to Command injection due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function.","status":"published","published":"2024-10-01T05:00:05Z","modified":"2024-11-07T15:26:05Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","level":"medium"}],"updated_at":"2026-11-03T00:05:08.272544Z"}],"ghsa":[{"id":"GHSA-qwrq-vxvw-537r","title":"git-shallow-clone Argument Injection vulnerability","description":"All versions of the package git-shallow-clone are vulnerable to Argument injection due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function.","status":"published","published":"2024-10-01T06:30:47Z","modified":"2024-11-07T18:36:34Z","cvss":[{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","level":"medium"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-88"],"updated_at":"2026-11-02T14:38:16.477822Z"}],"nvd":[{"id":"CVE-2024-21531","description":"All versions of the package git-shallow-clone are vulnerable to Command injection due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function.","status":"published","published":"2024-10-01T05:15:12.44Z","modified":"2026-06-17T07:09:41.333Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"secondary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:10:29.044588Z"}],"osv":[{"id":"GHSA-qwrq-vxvw-537r","title":"git-shallow-clone Argument Injection vulnerability","description":"All versions of the package git-shallow-clone are vulnerable to Argument injection due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function.","status":"published","published":"2024-10-01T06:30:47Z","modified":"2024-11-07T18:36:33Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"},{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-88"],"updated_at":"2026-11-02T15:46:55.122811Z"}]}}
