CVE-2026-11572
JSON

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 packageVersionsReported by
degitbefore 2.8.6, from 3.0.0 before 3.3.1CVE List
degit (npm)before 2.8.6, from 3.0.0 before 3.3.1GitHub Advisory Database

All scores

snyk8.7high CVSS:4.0CVSS: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
snyk8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:P
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS: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

CWE-77CWE-78

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

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

SourceRecordLicence
CVE ListCVE-2026-11572 changed 2026-06-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-77c7-pq4r-6mcq changed 2026-07-30CC-BY-4.0
NVDCVE-2026-11572 changed 2026-07-23Public domain