{"id":"CVE-2020-7668","aliases":["CVE-2020-7668","GHSA-88jf-7rch-32qc","GO-2020-0041"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","format":"markdown","source":"go"},{"lang":"es","text":"En todas las versiones del paquete github.com/unknwon/cae/tz, la función ExtractTo no escapa de forma segura a las rutas de archivos en archivos zip que incluyen \"..\" con o sin guión. Esto permite a un atacante agregar o reemplazar archivos en todo el sistema","source":"nvd"}],"published":"2020-06-17T16:00:21.626Z","modified":"2026-06-17T03:25:13.913Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","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","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","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","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"github.com/unknwon/cae/tz","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"Go","package":"github.com/unknwon/cae","purl":"pkg:golang/github.com/unknwon/cae","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"Go","package":"github.com/unknwon/cae","purl":"pkg:golang/github.com/unknwon/cae","source":"go"},{"ranges":[],"vendor":"compression_and_archive_extensions_tz_project","product":"compression_and_archive_extensions_tz_project","cpe":"cpe:2.3:a:compression_and_archive_extensions_tz_project:compression_and_archive_extensions_tz_project:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAETZ-570384","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7668","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/unknwon/cae","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0041","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/research/zip-slip-vulnerability","tags":["web"],"sources":["ghsa","go"]}],"credits":["Georgios Gkitsas of Snyk Security Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7668","url":"https://www.cve.org/CVERecord?id=CVE-2020-7668","licence":"CVE Terms of Use","modified":"2024-09-17T02:05:34.090Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-88jf-7rch-32qc","url":"https://github.com/advisories/GHSA-88jf-7rch-32qc","licence":"CC-BY-4.0","modified":"2023-11-08T04:04:03.732Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2020-0041","url":"https://pkg.go.dev/vuln/GO-2020-0041","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7668","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7668","licence":"Public domain","modified":"2026-06-17T03:25:13.913Z"}],"updatedAt":"2026-11-25T22:57:53.089Z","epss":{"score":0.01365,"percentile":0.72627,"date":"2026-12-01T12:00:22.000Z"}}