Skip to content
OpenAdvisories
High · 7.5 CVE-2020-7664 EUVD-2021-1206GHSA-vpx7-vm66-qx8rGO-2021-0228

Arbitrary File Write via Archive Extraction (Zip Slip)

Published Jun 17, 2020 · Updated Sep 17, 2024 · Assigned by snyk

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 products

VendorProductAffectedFixed
— github.com/unknwon/cae/zip < unspecified unspecified

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS golang-github-unknwon-cae No fix yet —
Ubuntu 18.04 LTS golang-github-unknwon-cae No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/unknwon/cae < 1.0.1 1.0.1 GHSA-vpx7-vm66-qx8r

References