GitHub Advisoryadvisory · Go

GHSA-f5c5-hmw9-v8hx Unzip vulnerable to path traversal

CRITICAL Published 2022-12-28 Modified 2023-08-30 Official page ↗
Aliases
CVE-2020-36561
Ecosystem
Go
Packages
github.com/yi-ge/unzip
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Weaknesses
CWE-22
Reviewed
2022-12-30

Affected packages

• Go github.com/yi-ge/unzip: < 1.0.3-0.20200308084313-2adbaa4891b9 → fixed in 1.0.3-0.20200308084313-2adbaa4891b9

Description

Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

Related

Alias · CVE (1)

  • CVE-2020-36561 Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the… vulnerability

Weakness · CWE (1)

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

References