8.7high
degit has a Command Injection issue
- Severity
- 8.7high CVSS:4.0 by snyk
- Exploit likelihood
- 1.04% (higher than 65% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-77c7-pq4r-6mcq
Description
Versions of the package degit before 2.8.6, from 3.0.0 and before 3.3.1 are vulnerable to Command Injection due to improper sanitisation of user input for git shell commands directly invoked with exec() method by _cloneWithGit() and fetchRefs() functions. An attacker can execute arbitrary operating system commands as the process user by supplying a specially crafted git repository name.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| degit | before 2.8.6, from 3.0.0 before 3.3.1 | CVE List |
| degit (npm) | before 2.8.6, from 3.0.0 before 3.3.1 | GitHub Advisory Database |
All scores
| snyk | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P |
| snyk | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:P |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P |
Classification
What each source says
CVE List
Versions of the package degit before 2.8.6, from 3.0.0 and before 3.3.1 are vulnerable to Command Injection due to improper sanitisation of user input for git shell commands directly invoked with exec() method by _cloneWithGit() and fetchRefs() functions. An attacker can execute arbitrary operating system commands as the process user by supplying a specially crafted git repository name.
NVD (es)
Las versiones del paquete degit anteriores a 2.8.6, desde 3.0.0 y anteriores a 3.3.1 son vulnerables a la inyección de comandos debido a una sanitización inadecuada de la entrada del usuario para comandos de shell de git invocados directamente con el método exec() por las funciones _cloneWithGit() y fetchRefs(). Un atacante puede ejecutar comandos arbitrarios del sistema operativo como el usuario del proceso al proporcionar un nombre de repositorio git especialmente diseñado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-11572 changed 2026-06-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-77c7-pq4r-6mcq changed 2026-07-30 | CC-BY-4.0 |
| NVD | CVE-2026-11572 changed 2026-07-23 | Public domain |