CVE-2024-21533
MEDIUM 6.5CVSS 3.1ggit is vulnerable to Arbitrary Argument Injection via the clone() API
All versions of the package ggit are vulnerable to Arbitrary Argument Injection via the clone() API, which allows specifying the remote URL to clone and the file on disk to clone to. The library does not sanitize for user input or validate a given URL scheme, nor does it properly pass command-line flags to the git binary using the double-dash POSIX characters (--) to communicate the end of options.
- Published
- 8 Oct 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-88
- Also known as
- GHSA-pr45-cg4x-ff4m
- Sources
- NVDJSONOSV GHSA-pr45-cg4x-ff4mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | ggit | <= 2.4.12 |
References
- https://gist.github.com/lirantal/80c6d59ac1b682a32bc9d2ff92044bb9 · WEB
- https://security.snyk.io/vuln/SNYK-JS-GGIT-5731319 · WEB
- https://github.com/bahmutov/ggit/blob/2e85b0316d9c272e067dca5679d39e302f4cb9cd/README.md?plain=1#L3
- https://nvd.nist.gov/vuln/detail/CVE-2024-21533 · ADVISORY
- https://github.com/bahmutov/ggit · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 8 Oct 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Oct 2024)