Vulnerability · Published Jun 17, 2020 · Assigned by snyk
CVE-2020-7668Arbitrary File Write via Archive Extraction (Zip Slip)
High 7.5
In plain English
A high-severity security flaw in github.com/unknwon/cae/tz. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.4%top 28.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/unknwon/cae | 1.0.1 | GHSA-88jf-7rch-32qc |
| Go | github.com/unknwon/cae | 1.0.1 | GO-2020-0041 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | github.com/unknwon/cae/tz | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAETZ-570384 x_refsource_MISC