GitHub Advisoryadvisory · Go

GHSA-88jf-7rch-32qc github.com/unknwon/cae Path Traversal vulnerability

HIGH Published 2021-05-18 Modified 2023-08-30 Official page ↗
Aliases
CVE-2020-7668
Ecosystem
Go
Packages
github.com/unknwon/cae
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-22
Reviewed
2021-05-12

Affected packages

• Go github.com/unknwon/cae: < 1.0.1 → fixed in 1.0.1

Description

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.

Related

Alias · CVE (1)

  • CVE-2020-7668 In all versions of the package github.com/unknwon/cae/tz, the ExtractTo function doesn't securely escape file paths in zip archives which… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References