Skip to content
OpenAdvisories
High · 7.3 Public exploit CVE-2024-21532 EUVD-2024-2956GHSA-62cx-5xj4-wfm4

ggit is vulnerable to Command Injection via the fetchTags(branch) API

Published Oct 8, 2024 · Updated Mar 21, 2026 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— ggit — —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm ggit <= 2.4.12 — GHSA-62cx-5xj4-wfm4

References