Vulnerability · Published Jun 17, 2020 · Assigned by snyk

CVE-2020-7664Arbitrary File Write via Archive Extraction (Zip Slip)

High 7.5

In plain English

A high-severity security flaw in github.com/unknwon/cae/zip. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.5%top 26.4% 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/zip, 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-vpx7-vm66-qx8r
Gogithub.com/unknwon/cae1.0.1GO-2021-0228

Affected products (as reported)

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

References