CVE-2024-21531
MEDIUM 5.3CVSS 3.1git-shallow-clone Argument Injection vulnerability
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.
- Published
- 1 Oct 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-78CWE-88
- Also known as
- GHSA-qwrq-vxvw-537r
- Sources
- NVDJSONOSV GHSA-qwrq-vxvw-537rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | git-shallow-clone | <= 0.0.2 |
References
- https://github.com/10uei011/git-shallow-clone/blob/master/index.js%23L27
- https://security.snyk.io/vuln/SNYK-JS-GITSHALLOWCLONE-3253853 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21531 · ADVISORY
- https://github.com/10uei011/git-shallow-clone · PACKAGE
- https://github.com/10uei011/git-shallow-clone/blob/master/index.js#L27 · WEB
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 1 Oct 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Oct 2024)