{"id":"CVE-2024-21531","aliases":["CVE-2024-21531","GHSA-qwrq-vxvw-537r"],"related":[],"kind":"vulnerability","state":"published","title":"git-shallow-clone Argument Injection vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Todas las versiones del paquete git-shallow-clone son vulnerables a la inyección de comandos debido a la falta de indicadores de saneamiento o mitigación en la variable de proceso de la función gitShallowClone.","source":"nvd"}],"published":"2024-10-01T05:00:05.367Z","modified":"2026-06-17T07:09:41.333Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-78","CWE-88"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"git-shallow-clone","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"vendor":"git","product":"git-shallow-clone","cpe":"cpe:2.3:a:git:git-shallow-clone:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.0.2"}],"ecosystem":"npm","package":"git-shallow-clone","purl":"pkg:npm/git-shallow-clone","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-GITSHALLOWCLONE-3253853","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/10uei011/git-shallow-clone/blob/master/index.js%23L27","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21531","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/10uei011/git-shallow-clone","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/10uei011/git-shallow-clone/blob/master/index.js#L27","tags":["web"],"sources":["ghsa"]}],"credits":["Liran Tal - Snyk Research Team"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-10-01T13:47:26.389Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21531","url":"https://www.cve.org/CVERecord?id=CVE-2024-21531","licence":"CVE Terms of Use","modified":"2024-11-07T15:26:05.308Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qwrq-vxvw-537r","url":"https://github.com/advisories/GHSA-qwrq-vxvw-537r","licence":"CC-BY-4.0","modified":"2024-11-07T18:36:33.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21531","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21531","licence":"Public domain","modified":"2026-06-17T07:09:41.333Z"}],"updatedAt":"2026-11-25T22:58:45.910Z","epss":{"score":0.00954,"percentile":0.62384,"date":"2026-12-01T12:00:22.000Z"}}