GitHub Advisoryadvisory · Go
GHSA-f5c5-hmw9-v8hx Unzip vulnerable to path traversal
CRITICAL
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
- https://nvd.nist.gov/vuln/detail/CVE-2020-36561 advisory
- https://github.com/yi-ge/unzip/pull/1 web
- https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73 web
- https://github.com/yi-ge/unzip package
- https://pkg.go.dev/vuln/GO-2020-0035 web
- https://snyk.io/research/zip-slip-vulnerability web