# CVE-2024-21533: ggit is vulnerable to Arbitrary Argument Injection via the clone() API

- Severity: Medium 6.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2024-10-08T05:00:05.285Z
- Modified: 2026-06-17T07:09:41.550Z
- Also known as: GHSA-pr45-cg4x-ff4m
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- ggit: before *
- bahmutov ggit: up to 2.4.12
- ggit (npm): up to 2.4.12

## Every score

- snyk: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://security.snyk.io/vuln/SNYK-JS-GGIT-5731319> (web)
- <https://gist.github.com/lirantal/80c6d59ac1b682a32bc9d2ff92044bb9> (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)

## Sources

- CVE List: [CVE-2024-21533](https://www.cve.org/CVERecord?id=CVE-2024-21533), CVE Terms of Use, modified 2026-03-21
- GitHub Advisory Database: [GHSA-pr45-cg4x-ff4m](https://github.com/advisories/GHSA-pr45-cg4x-ff4m), CC-BY-4.0, modified 2025-09-18
- NVD: [CVE-2024-21533](https://nvd.nist.gov/vuln/detail/CVE-2024-21533), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21533 · Whole record: https://cve.day/CVE-2024-21533.json · Rebuilt by cve.day 2026-11-25T22:58:46.161Z
