GitHub Advisoryadvisory · Go
GHSA-rmj9-q58g-9qgg go-unzip vulnerable to Path Traversal
CRITICAL
Official page ↗
- Aliases
- CVE-2020-36560
- Ecosystem
- Go
- Packages
- github.com/artdarek/go-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/artdarek/go-unzip: < 2.0.0 → fixed in 2.0.0
Description
Due to improper path santization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.
Related
Alias · CVE (1)
- CVE-2020-36560 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-36560 advisory
- https://github.com/artdarek/go-unzip/pull/2 web
- https://github.com/artdarek/go-unzip/commit/4975cbe0a719dc50b12da8585f1f207c82f7dfe0 web
- https://github.com/artdarek/go-unzip package
- https://pkg.go.dev/vuln/GO-2020-0034 web
- https://snyk.io/research/zip-slip-vulnerability web