CVE-2020-36560 json
Path traversal in github.com/artdarek/go-unzip
published 2021-04-14 5 y ago modified 2026-06-17 4 mo ago also GHSA-rmj9-q58g-9qgg , GO-2020-0034 , EUVD-2022-7737
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.
Patch / fix
- go github.com/artdarek/go-unzip 1.0.0, 2.0.0
- github.com/artdarek/go-unzip github.com/artdarek/go-unzip 1.0.0
- github.com/artdarek/go-unzip@4975cbe commit
- github.com/artdarek/go-unzip#2 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.33% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/artdarek/go-unzip/pull/2 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/artdarek/go-unzip | <2.0.0 <1.0.0 |
2.0.0 1.0.0 |
Affected products
- github.com/artdarek/go-unzip github.com/artdarek/go-unzip
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/artdarek/go-unzip/pull/2
web, exploit, third-party-advisory, patch
-
github.com
/artdarek/go-unzip/commit/4975cbe0a719dc50b12da8585f1f207c82f7dfe0
web, patch, third-party-advisory
-
snyk.io
/research/zip-slip-vulnerability
web, technical-description, third-party-advisory
-
pkg.go.dev
/vuln/GO-2020-0034
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-36560
advisory
-
github.com
/artdarek/go-unzip
package
Sources
- CVE List CVE-2020-36560
- GitHub Advisory GHSA-rmj9-q58g-9qgg
- NVD CVE-2020-36560
- OSV GO-2020-0034
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.