What’s Vulnerable › Vulnerabilities
CVE-2020-36566: Path traversal in github.com/whyrusleeping/tar-utils
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- 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/whyrusleeping/tar-utils: before 0.0.0-20201201191210-20a61371de5b — fixed in 0.0.0-20201201191210-20a61371de5b
How to fix
Upgrade to a fixed version: github.com/whyrusleeping/tar-utils 0.0.0-20201201191210-20a61371de5b. Check the vendor advisory for mitigations.
References
- https://github.com/whyrusleeping/tar-utils/commit/20a61371de5b51380bbdb0c7935b30b0625ac227
- https://pkg.go.dev/vuln/GO-2021-0106
- https://snyk.io/research/zip-slip-vulnerability
- https://github.com/whyrusleeping/tar-utils/commit/20a61371de5b51380bbdb0c7935b30b0625ac227
- https://pkg.go.dev/vuln/GO-2021-0106
- https://snyk.io/research/zip-slip-vulnerability
Get alerted when CVE-2020-36566 or the next vulnerability affects your stack