{"id":"CVE-2020-7664","aliases":["EUVD-2021-1206","GHSA-vpx7-vm66-qx8r","GO-2021-0228","UBUNTU-CVE-2020-7664"],"status":"published","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","description":"In all versions of the package github.com/unknwon/cae/zip, the ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading \"..\". This allows an attacker to add or replace files system-wide.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N/E:P/RL:U/RC:C","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.01455,"percentile":0.73641,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2020-06-17T16:00:17Z","modified":"2026-06-17T03:25:13Z","fixes":[{"ecosystem":"Go","package":"github.com/unknwon/cae","fixed_in":["1.0.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/unknwon/cae","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/unknwon/cae","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/unknwon/cae","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"golang-github-unknwon-cae","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20160715.0.c6aac99-1","0.0~git20160715.0.c6aac99-2","0.0~git20160715.0.c6aac99-4"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"golang-github-unknwon-cae","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20160715.0.c6aac99-4"]}],"products":[{"vendor":"compression_and_archive_extensions_project","product":"compression_and_archive_extensions_zip_project"}],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAEZIP-570383","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7664","tags":["advisory"]},{"url":"https://github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0228","tags":["web"]},{"url":"https://github.com/advisories/GHSA-vpx7-vm66-qx8r"},{"url":"https://github.com/unknwon/cae","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2020-7664","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-7664","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-7664","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","description":"In all versions of the package github.com/unknwon/cae/zip, the ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading \"..\". This allows an attacker to add or replace files system-wide.","status":"published","published":"2020-06-17T16:00:17.22Z","modified":"2024-09-17T02:26:16.941Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N/E:P/RL:U/RC:C","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.787905Z"}],"euvd":[{"id":"EUVD-2021-1206","description":"In all versions of the package github.com/unknwon/cae/zip, the ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading \"..\". This allows an attacker to add or replace files system-wide.","status":"published","published":"2020-06-17T16:00:17Z","modified":"2024-09-17T02:26:16Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N/E:P/RL:U/RC:C","level":"high"}],"updated_at":"2026-11-03T00:28:40.896027Z"}],"ghsa":[{"id":"GHSA-vpx7-vm66-qx8r","title":"Path Traversal in github.com/unknwon/cae/zip","description":"The ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading \"..\". This allows an attacker to add or replace files system-wide.\n\n### Specific Go Packages Affected\ngithub.com/unknwon/cae/zip","status":"published","published":"2021-05-18T20:31:06Z","modified":"2023-10-02T12:21:11Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:07.641671Z"}],"nvd":[{"id":"CVE-2020-7664","description":"In all versions of the package github.com/unknwon/cae/zip, the ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading \"..\". This allows an attacker to add or replace files system-wide.","status":"published","published":"2020-06-23T19:38:14.543Z","modified":"2026-06-17T03:25:13.503Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:06:07.249892Z"}],"osv":[{"id":"GHSA-vpx7-vm66-qx8r","title":"Path Traversal in github.com/unknwon/cae/zip","description":"The ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading \"..\". This allows an attacker to add or replace files system-wide.\n\n### Specific Go Packages Affected\ngithub.com/unknwon/cae/zip","status":"published","published":"2021-05-18T20:31:06Z","modified":"2026-03-13T22:11:14.558135Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:57.694388Z"},{"id":"UBUNTU-CVE-2020-7664","description":"In all versions of the package github.com/unknwon/cae/zip, the ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading \"..\". This allows an attacker to add or replace files system-wide.","status":"published","published":"2020-06-23T19:38:00Z","modified":"2025-10-24T04:48:19Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:54:25.728622Z"},{"id":"GO-2021-0228","title":"Path traversal in github.com/unknwon/cae","description":"The ExtractTo function doesn't securely escape file paths in zip archives which include leading or non-leading \"..\". This allows an attacker to add or replace files system-wide.","status":"published","published":"2022-01-14T17:30:28Z","modified":"2026-03-13T22:11:14.558135Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
