CVE-2020-36560
9.1critical
Path traversal in github.com/artdarek/go-unzip
- Severity
- 9.1critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.33% (higher than 71% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GHSA-rmj9-q58g-9qggGO-2020-0034
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/artdarek/go-unzip | before 1.0.0 | CVE List |
| github.com/artdarek/go-unzip (Go) | before 2.0.0, before 1.0.0 | GitHub Advisory Database, Go Vulnerability Database |
| go-unzip_project go-unzip | before 1.0.0 | 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 poc, automatable no, technical impact partial.
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.
GitHub Advisory Database
Due to improper path santization, 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/artdarek/go-unzip/pull/2 | exploit, fix, third-party-advisory, web | |
| https://github.com/artdarek/go-unzip/commit/4975cbe0a719dc50b12da8585f1f207c82f7dfe0 | 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-2020-0034 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36560 | advisory | |
| https://github.com/artdarek/go-unzip | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36560 changed 2025-04-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rmj9-q58g-9qgg changed 2023-11-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2020-0034 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2020-36560 changed 2026-06-17 | Public domain |