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 package | Versions | Reported by |
|---|---|---|
| ggit | before * | CVE List |
| bahmutov ggit | before * | CVE List |
| ggit (npm) | up to 2.4.12 | GitHub Advisory Database |
All scores
| snyk | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P |
| GitHub | 7.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | medium CVSS:4.0 | CVSS: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
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21532 changed 2026-03-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-62cx-5xj4-wfm4 changed 2024-10-08 | CC-BY-4.0 |
| NVD | CVE-2024-21532 changed 2026-06-17 | Public domain |