What’s Vulnerable › Vulnerabilities
CVE-2020-36561: Path traversal in github.com/yi-ge/unzip
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-12-27 · updated 2026-06-17
- Weakness: CWE-22
Description
Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.
Affected products
- github.com/yi-ge/unzip: before 1.0.3-0.20200308084313-2adbaa4891b9 — fixed in 1.0.3-0.20200308084313-2adbaa4891b9
How to fix
Upgrade to a fixed version: github.com/yi-ge/unzip 1.0.3-0.20200308084313-2adbaa4891b9. Check the vendor advisory for mitigations.
References
- https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73
- https://github.com/yi-ge/unzip/pull/1
- https://pkg.go.dev/vuln/GO-2020-0035
- https://snyk.io/research/zip-slip-vulnerability
- https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73
- https://github.com/yi-ge/unzip/pull/1
- https://pkg.go.dev/vuln/GO-2020-0035
- https://snyk.io/research/zip-slip-vulnerability
Get alerted when CVE-2020-36561 or the next vulnerability affects your stack