CVE-2020-7668

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

Identifiers

GHSA-88jf-7rch-32qc, CVE-2020-7668

Package Slug

go/github.com/unknwon/cae/tz

Vulnerability

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

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 Versions

All versions before 1.0.1

Solution

Upgrade to version 1.0.1 or above.

Last Modified

2022-01-11

source