CVE-2024-21532: ggit · Command Injection
Affects ggitSource CVE Database V5
Not known to be exploited · CVSS 7.3 High.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 1.2% chance of exploitation in 30 days – higher than 69% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:PExploitation evidence
Disclosed: evidence found.
CVE published 8 Oct 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmggitpkg:npm/ggitOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until an official patch is released, organizations should implement strict input validation and sanitization on any user-supplied branch names passed to the fetchTags API. Restrict network access to the ggit service to trusted users and internal networks only. Employ application-layer firewalls or runtime application self-protection (RASP) solutions to detect and block suspicious command injection patterns. Consider replacing calls to exec() with safer alternatives like execFile() or spawn() that do not invoke a shell, or refactor the code to avoid concatenating user input into shell commands. Monitor logs for unusual git command executions or shell activity. Keep dependencies up to date and subscribe to security advisories for ggit to apply patches promptly once available.
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.