# CVE-2020-7668: 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/E:P/RL:U/RC:C`
- 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.36%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-06-17T16:00:21.626Z
- Modified: 2026-06-17T03:25:13.913Z
- Also known as: GHSA-88jf-7rch-32qc, GO-2020-0041
- Weaknesses: CWE-22
- Assigned by: snyk

## Description

In all versions of the package github.com/unknwon/cae/tz, the ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading "..". This allows an attacker to add or replace files system-wide.

(As written by CVE List.)

## Affected

- github.com/unknwon/cae/tz: before unspecified
- github.com/unknwon/cae (Go): before 1.0.1
- compression_and_archive_extensions_tz_project compression_and_archive_extensions_tz_project: 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/E:P/RL:U/RC:C`
- 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-GITHUBCOMUNKNWONCAETZ-570384> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7668> (advisory)
- <https://github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11> (fix, web)
- <https://github.com/unknwon/cae> (package)
- <https://pkg.go.dev/vuln/GO-2020-0041> (web)
- <https://snyk.io/research/zip-slip-vulnerability> (web)

## Sources

- CVE List: [CVE-2020-7668](https://www.cve.org/CVERecord?id=CVE-2020-7668), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-88jf-7rch-32qc](https://github.com/advisories/GHSA-88jf-7rch-32qc), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2020-0041](https://pkg.go.dev/vuln/GO-2020-0041), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2020-7668](https://nvd.nist.gov/vuln/detail/CVE-2020-7668), Public domain, modified 2026-06-17

---

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