# CVE-2020-36561: Path traversal in github.com/yi-ge/unzip

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.41%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-14T20:04:52.000Z
- Modified: 2026-06-17T03:15:44.310Z
- Also known as: GHSA-f5c5-hmw9-v8hx, GO-2020-0035
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Go

## Description

Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

(As written by CVE List.)

## Affected

- github.com/yi-ge/unzip: before 1.0.3-0.20200308084313-2adbaa4891b9
- github.com/yi-ge/unzip (Go): before 1.0.3-0.20200308084313-2adbaa4891b9
- unzip_project unzip: before 1.0.3-0.20200308084313-2adbaa4891b9

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/yi-ge/unzip/pull/1> (exploit, fix, third-party-advisory, web)
- <https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73> (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-0035> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-36561> (advisory)
- <https://github.com/yi-ge/unzip> (package)

## Sources

- CVE List: [CVE-2020-36561](https://www.cve.org/CVERecord?id=CVE-2020-36561), CVE Terms of Use, modified 2025-04-11
- GitHub Advisory Database: [GHSA-f5c5-hmw9-v8hx](https://github.com/advisories/GHSA-f5c5-hmw9-v8hx), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2020-0035](https://pkg.go.dev/vuln/GO-2020-0035), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2020-36561](https://nvd.nist.gov/vuln/detail/CVE-2020-36561), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-36561 · Whole record: https://cve.day/CVE-2020-36561.json · Rebuilt by cve.day 2026-11-25T22:57:58.777Z
