# CVE-2020-36560: Path traversal in github.com/artdarek/go-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.33%, higher than 71% 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.110Z
- Also known as: GHSA-rmj9-q58g-9qgg, GO-2020-0034
- 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/artdarek/go-unzip: before 1.0.0
- github.com/artdarek/go-unzip (Go): before 2.0.0; before 1.0.0
- go-unzip_project go-unzip: before 1.0.0

## 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/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

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

---

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