# CVE-2020-7666: Arbitrary File Write via Archive Extraction (Zip Slip)

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- 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.53%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-01T13:55:17.641Z
- Modified: 2026-06-17T03:25:13.703Z
- Also known as: GHSA-mq35-x99r-54fc
- Weaknesses: CWE-22
- Assigned by: snyk

## Description

This affects all versions of package github.com/u-root/u-root/pkg/cpio. It is vulnerable to leading, non-leading relative path traversal attacks and symlink based (relative and absolute) path traversal attacks in cpio file extraction.

(As written by CVE List.)

## Affected

- github.com/u-root/u-root/pkg/cpio: before unspecified
- github.com/u-root/u-root/pkg/cpio (Go): up to 7.0.0
- u-root u-root: no versions given

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUROOTUROOTPKGCPIO-570440> (exploit, third-party-advisory, web)
- <https://github.com/u-root/u-root/pull/1817> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7666> (advisory)

## Sources

- CVE List: [CVE-2020-7666](https://www.cve.org/CVERecord?id=CVE-2020-7666), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-mq35-x99r-54fc](https://github.com/advisories/GHSA-mq35-x99r-54fc), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2020-7666](https://nvd.nist.gov/vuln/detail/CVE-2020-7666), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7666 · Whole record: https://cve.day/CVE-2020-7666.json · Rebuilt by cve.day 2026-11-25T22:57:54.462Z
