CVE-2020-7668
Arbitrary File Write via Archive Extraction (Zip Slip)
Reported by snyk · Published June 17, 2020
github.com/unknwon/cae/tz is fixed in 1.0.1 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/unknwon/cae/tz | Go Modules | 1.0.1 |
| github.com/unknwon/cae | Go Modules | v1.0.1, 1.0.1 |
| github.com/unknwon/cae/tz | n/a | unspecified |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | github.com/unknwon/cae/tz | 0 |
| n/a | github.com/unknwon/cae/tz | 0 |
| github.com | unknwon/cae/tz | 0 |
| github.com | unknwon/cae | 0 |
Timeline
- Jun 17, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 16, 2023 CVE Updated
- Mar 17, 2026 Security Advisory
- Aug 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-7668
vulnetix vdb fixes CVE-2020-7668
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-7668/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-7668 advisory
- https://github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11 patch
- https://pkg.go.dev/vuln/GO-2020-0041 url
- https://snyk.io/research/zip-slip-vulnerability url
- https://github.com/advisories/GHSA-88jf-7rch-32qc advisory