6.5medium
ggit is vulnerable to Arbitrary Argument Injection via the clone() API
- Severity
- 6.5medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.60% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-pr45-cg4x-ff4m
Description
All versions of the package ggit are vulnerable to Arbitrary Argument Injection via the clone() API, which allows specifying the remote URL to clone and the file on disk to clone to. The library does not sanitize for user input or validate a given URL scheme, nor does it properly pass command-line flags to the git binary using the double-dash POSIX characters (--) to communicate the end of options.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ggit | before * | CVE List |
| bahmutov ggit | up to 2.4.12 | CVE List |
| ggit (npm) | up to 2.4.12 | GitHub Advisory Database |
All scores
| snyk | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
All versions of the package ggit are vulnerable to Arbitrary Argument Injection via the clone() API, which allows specifying the remote URL to clone and the file on disk to clone to. The library does not sanitize for user input or validate a given URL scheme, nor does it properly pass command-line flags to the git binary using the double-dash POSIX characters (--) to communicate the end of options.
NVD (es)
Todas las versiones del paquete ggit son vulnerables a la inyección de argumentos arbitrarios a través de la API clone(), que permite especificar la URL remota que se va a clonar y el archivo en el disco en el que se va a clonar. La librería no realiza la limpieza para la entrada del usuario ni valida un esquema de URL determinado, ni tampoco pasa correctamente los indicadores de línea de comandos al binario de git utilizando los caracteres POSIX de doble guión (--) para comunicar el final de las opciones.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21533 changed 2026-03-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pr45-cg4x-ff4m changed 2025-09-18 | CC-BY-4.0 |
| NVD | CVE-2024-21533 changed 2026-06-17 | Public domain |