CVE-2024-21532
JSON

7.3high

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

Severity
7.3high CVSS:3.1 by snyk
Exploit likelihood
1.29% (higher than 71% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-62cx-5xj4-wfm4

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

Product or packageVersionsReported by
ggitbefore *CVE List
bahmutov ggitbefore *CVE List
ggit (npm)up to 2.4.12GitHub Advisory Database

All scores

snyk7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
GitHub7.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Todas las versiones del paquete ggit son vulnerables a la inyección de comandos a través de la API fetchTags(branch), que permite la entrada del usuario para especificar la rama que se buscará y luego concatena esta cadena junto con un comando git que luego se pasa a la API del proceso secundario exec() de Node.js inseguro.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21532 changed 2026-03-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-62cx-5xj4-wfm4 changed 2024-10-08CC-BY-4.0
NVDCVE-2024-21532 changed 2026-06-17Public domain