Due to improper path santization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.
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