{"id":"CVE-2020-36560","aliases":["EUVD-2022-7737","GHSA-rmj9-q58g-9qgg","GO-2020-0034"],"status":"published","title":"Path traversal in github.com/artdarek/go-unzip","description":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01333,"percentile":0.71502,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2021-04-14T20:04:52Z","modified":"2026-10-20T10:54:21Z","fixes":[{"ecosystem":"Go","package":"github.com/artdarek/go-unzip","fixed_in":["2.0.0","1.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/artdarek/go-unzip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/artdarek/go-unzip","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/artdarek/go-unzip","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.0"}]}]}],"products":[{"vendor":"github.com/artdarek/go-unzip","product":"github.com/artdarek/go-unzip"},{"vendor":"go-unzip_project","product":"go-unzip"}],"references":[{"url":"https://github.com/artdarek/go-unzip/pull/2","tags":["x_transferred","Exploit","Third Party Advisory","evidence","web","fix"]},{"url":"https://github.com/artdarek/go-unzip/commit/4975cbe0a719dc50b12da8585f1f207c82f7dfe0","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://snyk.io/research/zip-slip-vulnerability","tags":["x_transferred","Technical Description","Third Party Advisory","advisory","web"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0034","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36560","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-rmj9-q58g-9qgg"},{"url":"https://github.com/artdarek/go-unzip","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-36560","title":"Path traversal in github.com/artdarek/go-unzip","description":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","status":"published","published":"2022-12-27T21:13:20.828Z","modified":"2025-04-11T16:37:12.055Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical","assessor":"adp"}],"updated_at":"2026-11-02T14:35:55.128961Z"}],"euvd":[{"id":"EUVD-2022-7737","description":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","status":"published","published":"2022-12-27T21:13:20Z","modified":"2025-04-11T16:37:12Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:52:34.493984Z"}],"ghsa":[{"id":"GHSA-rmj9-q58g-9qgg","title":"go-unzip vulnerable to Path Traversal","description":"Due to improper path santization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","status":"published","published":"2022-12-28T00:30:23Z","modified":"2023-08-28T23:38:39Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:01.345964Z"}],"nvd":[{"id":"CVE-2020-36560","description":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","status":"published","published":"2022-12-27T22:15:11.573Z","modified":"2026-06-17T03:15:44.11Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:06:47.286386Z"}],"osv":[{"id":"CVE-2020-36560","description":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","status":"published","published":"2022-12-27T22:15:11.573Z","modified":"2026-10-20T10:54:21.426123361Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:16.936975Z"},{"id":"GHSA-rmj9-q58g-9qgg","title":"go-unzip vulnerable to Path Traversal","description":"Due to improper path santization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","status":"published","published":"2022-12-28T00:30:23Z","modified":"2023-11-08T04:03:47.42085Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:56.281047Z"},{"id":"GO-2020-0034","title":"Path traversal in github.com/artdarek/go-unzip","description":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
