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

EcosystemPackageFixed inAdvisory
Gogithub.com/unknwon/cae1.0.1GHSA-88jf-7rch-32qc
Gogithub.com/unknwon/cae1.0.1GO-2020-0041

Affected products (as reported)

VendorProductVersions
n/a github.com/unknwon/cae/tz 0 – before unspecified

References