CVE-2020-36560
CRITICAL 9.1CVSS 3.1go-unzip vulnerable to Path Traversal
Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.
- Published
- 27 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-rmj9-q58g-9qggGO-2020-0034
- Sources
- NVDJSONOSV GHSA-rmj9-q58g-9qggJSONOSV GO-2020-0034JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | go-unzip_project | go-unzipcpe:2.3:a:go-unzip_project:go-unzip:*:*:*:*:*:go:*:* |
< 1.0.0 | 1.0.0 |
| OSV | Go | github.com/artdarek/go-unzip | < 2.0.0 | 2.0.0 |
| OSV | Go | github.com/artdarek/go-unzip | < 1.0.0 | 1.0.0 |
References
- https://github.com/artdarek/go-unzip/commit/4975cbe0a719dc50b12da8585f1f207c82f7dfe0 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/artdarek/go-unzip/pull/2 · Exploit, Third Party Advisory, WEB, FIX
- https://pkg.go.dev/vuln/GO-2020-0034 · Third Party Advisory, WEB
- https://snyk.io/research/zip-slip-vulnerability · Technical Description, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-36560 · ADVISORY
- https://github.com/artdarek/go-unzip · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 27 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Dec 2022)