CVE-2020-36561 json
Path traversal in github.com/yi-ge/unzip
published 5y ago modified 4mo ago also GHSA-f5c5-hmw9-v8hx , GO-2020-0035 , EUVD-2022-7611
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- 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/yi-ge/unzip 1.0.3-0.20200308084313-2adbaa4891b9
- github.com/yi-ge/unzip github.com/yi-ge/unzip 1.0.3-0.20200308084313-2adbaa4891b9
- github.com/yi-ge/unzip@2adbaa4 commit
- github.com/yi-ge/unzip#1 pull request
Is CVE-2020-36561 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
1.41% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/yi-ge/unzip/pull/1 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/yi-ge/unzip | <1.0.3-0.20200308084313-2adbaa4891b9 |
1.0.3-0.20200308084313-2adbaa4891b9 |
Affected products
- github.com/yi-ge/unzip github.com/yi-ge/unzip
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/yi-ge/unzip/pull/1
web, exploit, third-party-advisory, patch
-
github.com
/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73
web, patch, third-party-advisory
-
snyk.io
/research/zip-slip-vulnerability
web, technical-description, third-party-advisory
-
pkg.go.dev
/vuln/GO-2020-0035
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-36561
advisory
-
github.com
/yi-ge/unzip
package
Sources
- CVE List CVE-2020-36561
- GitHub Advisory GHSA-f5c5-hmw9-v8hx
- NVD CVE-2020-36561
- OSV GO-2020-0035
Fencer Intel 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.