artdarek/go-unzip · Security
go-unzip vulnerable to Path Traversal
- GHSA ID
- GHSA-rmj9-q58g-9qgg
- CVE ID
- CVE-2020-36560
- Severity
- critical
- Published
- Updated
- CVSS
- 9.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- CVSS v3
- 9.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Description
Due to improper path santization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-36560 ↗
- https://github.com/artdarek/go-unzip/pull/2 ↗
- https://github.com/artdarek/go-unzip/commit/4975cbe0a719dc50b12da8585f1f207c82f7dfe0 ↗
- https://pkg.go.dev/vuln/GO-2020-0034 ↗
- https://snyk.io/research/zip-slip-vulnerability ↗
- https://github.com/advisories/GHSA-rmj9-q58g-9qgg ↗