CVE-2020-7664

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in go/github.com/unknwon/cae/zip

Identifiers

GHSA-vpx7-vm66-qx8r, CVE-2020-7664

Package Slug

go/github.com/unknwon/cae/zip

Vulnerability

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

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 Versions

All versions before 1.0.1

Solution

Upgrade to version 1.0.1 or above.

Last Modified

2022-01-11

source