{"id":"CVE-2020-7668","aliases":["EUVD-2021-1013","GHSA-88jf-7rch-32qc","GO-2020-0041","UBUNTU-CVE-2020-7668"],"status":"published","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","description":"In all versions of the package github.com/unknwon/cae/tz, 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-09","score":0.01365,"percentile":0.72016,"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:21Z","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_tz_project","product":"compression_and_archive_extensions_tz_project"}],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAETZ-570384","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7668","tags":["advisory"]},{"url":"https://github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0041","tags":["web"]},{"url":"https://snyk.io/research/zip-slip-vulnerability","tags":["web"]},{"url":"https://github.com/advisories/GHSA-88jf-7rch-32qc"},{"url":"https://github.com/unknwon/cae","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2020-7668","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-7668","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-7668","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","description":"In all versions of the package github.com/unknwon/cae/tz, 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:21.626Z","modified":"2024-09-17T02:05:34.09Z","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-1013","description":"In all versions of the package github.com/unknwon/cae/tz, 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:21Z","modified":"2024-09-17T02:05:34Z","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:43.867146Z"}],"ghsa":[{"id":"GHSA-88jf-7rch-32qc","title":"github.com/unknwon/cae Path Traversal vulnerability","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":"2021-05-18T20:31:18Z","modified":"2023-08-30T11:23:33Z","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:02.095916Z"}],"nvd":[{"id":"CVE-2020-7668","description":"In all versions of the package github.com/unknwon/cae/tz, 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.637Z","modified":"2026-06-17T03:25:13.913Z","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-88jf-7rch-32qc","title":"github.com/unknwon/cae Path Traversal vulnerability","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":"2021-05-18T20:31:18Z","modified":"2023-11-08T04:04:03.732608Z","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:42.077781Z"},{"id":"UBUNTU-CVE-2020-7668","description":"In all versions of the package github.com/unknwon/cae/tz, 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-2020-0041","title":"Path Traversal in github.com/unknwon/cae","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"}]}}
