OS command injection in degit
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | degit | before 2.8.6; 3.0.0 to before 3.3.1 | 2.8.6, 3.3.1 | Patch available | CNA |
| — | degit (npm) | before 2.8.6 | 2.8.6 | Patch available | GHSA-77c7-pq4r-6mcq |
| — | degit (npm) | 3.0.0 to before 3.3.1 | 3.3.1 | Patch available | GHSA-77c7-pq4r-6mcq |
- degit Vendor— Affected before 2.8.6; 3.0.0 to before 3.3.1 Fixed in 2.8.6, 3.3.1 Patch available CNA
- degit (npm) Vendor— Affected before 2.8.6 Fixed in 2.8.6 Patch available GHSA-77c7-pq4r-6mcq
- degit (npm) Vendor— Affected 3.0.0 to before 3.3.1 Fixed in 3.3.1 Patch available GHSA-77c7-pq4r-6mcq
Remediation
- Fix · CNA degit Fixed in 2.8.6, 3.3.1
- Fix · GHSA-77c7-pq4r-6mcq degit (npm) Fixed in 2.8.6 Advisory →
- Fix · GHSA-77c7-pq4r-6mcq degit (npm) Fixed in 3.3.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-11572
- 2026-10-03 Alias added: GHSA-77c7-pq4r-6mcq
References
Sources
- CVE-2026-11572 · CVE Program
- CVE-2026-11572 · NVD
- FIRST EPSS
- GHSA-77c7-pq4r-6mcq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences