CVE-2020-36566
9.1critical
Path traversal in github.com/whyrusleeping/tar-utils
- Severity
- 9.1critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.11% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GHSA-jpf8-h7h7-3ppmGO-2021-0106
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
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/whyrusleeping/tar-utils | before 0.0.0-20201201191210-20a61371de5b | CVE List |
| github.com/whyrusleeping/tar-utils (Go) | before 0.0.0-20201201191210-20a61371de5b | GitHub Advisory Database, Go Vulnerability Database |
| tar-utils_project tar-utils | before 0.0.0-20201201191210-20a61371de5b | NVD |
All scores
| CISA-ADP | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.
NVD (es)
Debido a una sanitización inadecuada de la ruta, los archivos que contienen rutas de archivo relativas pueden hacer que los archivos se escriban (o sobrescriban) fuera del directorio de destino.
References
| https://github.com/whyrusleeping/tar-utils/commit/20a61371de5b51380bbdb0c7935b30b0625ac227 | fix, patch, third-party-advisory, web | |
| https://snyk.io/research/zip-slip-vulnerability | technical-description, third-party-advisory, web | |
| https://pkg.go.dev/vuln/GO-2021-0106 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36566 | advisory | |
| https://github.com/whyrusleeping/tar-utils | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36566 changed 2025-04-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jpf8-h7h7-3ppm changed 2023-11-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2021-0106 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2020-36566 changed 2026-06-17 | Public domain |