What’s Vulnerable › Vulnerabilities
CVE-2020-36560: Path traversal in github.com/artdarek/go-unzip
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.3% 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/artdarek/go-unzip: before 1.0.0 — fixed in 1.0.0
How to fix
Upgrade to a fixed version: github.com/artdarek/go-unzip 1.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/artdarek/go-unzip/commit/4975cbe0a719dc50b12da8585f1f207c82f7dfe0
- https://github.com/artdarek/go-unzip/pull/2
- https://pkg.go.dev/vuln/GO-2020-0034
- https://snyk.io/research/zip-slip-vulnerability
- https://github.com/artdarek/go-unzip/commit/4975cbe0a719dc50b12da8585f1f207c82f7dfe0
- https://github.com/artdarek/go-unzip/pull/2
- https://pkg.go.dev/vuln/GO-2020-0034
- https://snyk.io/research/zip-slip-vulnerability
Get alerted when CVE-2020-36560 or the next vulnerability affects your stack