yi-ge/unzip · Security
Unzip vulnerable to path traversal
- GHSA ID
- GHSA-f5c5-hmw9-v8hx
- CVE ID
- CVE-2020-36561
- 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 sanitization, 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-36561 ↗
- https://github.com/yi-ge/unzip/pull/1 ↗
- https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73 ↗
- https://pkg.go.dev/vuln/GO-2020-0035 ↗
- https://snyk.io/research/zip-slip-vulnerability ↗
- https://github.com/advisories/GHSA-f5c5-hmw9-v8hx ↗