# CVE-2026-11572: degit has a Command Injection issue

- Severity: High 8.7 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-09T05:00:04.627Z
- Modified: 2026-07-30T18:56:41.887Z
- Also known as: GHSA-77c7-pq4r-6mcq
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- degit: before 2.8.6; from 3.0.0 before 3.3.1
- degit (npm): before 2.8.6; from 3.0.0 before 3.3.1

## Every score

- snyk: CVSS:4.0 8.7 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://gist.github.com/badp3te/cf22a939eedbd3d8ade9123827d61639> (exploit, web)
- <https://security.snyk.io/vuln/SNYK-JS-DEGIT-17116207> (web)
- <https://github.com/Rich-Harris/degit/commit/d55bfd7cea79c0b387f69ec8477b6c34abf9f226> (web)
- <https://github.com/Rich-Harris/degit/commit/4ac99e4a4c3f53ca3b5c997bcd7542742ad0c443> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-11572> (advisory)
- <https://github.com/Rich-Harris/degit> (package)

## Sources

- CVE List: [CVE-2026-11572](https://www.cve.org/CVERecord?id=CVE-2026-11572), CVE Terms of Use, modified 2026-06-09
- GitHub Advisory Database: [GHSA-77c7-pq4r-6mcq](https://github.com/advisories/GHSA-77c7-pq4r-6mcq), CC-BY-4.0, modified 2026-07-30
- NVD: [CVE-2026-11572](https://nvd.nist.gov/vuln/detail/CVE-2026-11572), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-11572 · Whole record: https://cve.day/CVE-2026-11572.json · Rebuilt by cve.day 2026-11-25T22:59:24.074Z
