{"id":"GO-2021-0228","summary":"Path traversal in github.com/unknwon/cae","details":"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.","aliases":["CVE-2020-7664","GHSA-vpx7-vm66-qx8r"],"modified":"2026-03-13T22:11:14.558135Z","published":"2022-01-14T17:30:28Z","database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2021-0228"},"references":[{"type":"FIX","url":"https://github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAEZIP-570383"}],"affected":[{"package":{"name":"github.com/unknwon/cae","ecosystem":"Go","purl":"pkg:golang/github.com/unknwon/cae"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/unknwon/cae/tz","symbols":["Create","ExtractTo","Open","OpenFile","TzArchive.Close","TzArchive.ExtractTo","TzArchive.ExtractToFunc","TzArchive.Flush","TzArchive.Open","TzArchive.syncFiles"]},{"symbols":["Create","ExtractTo","ExtractToFunc","Open","OpenFile","ZipArchive.Close","ZipArchive.ExtractTo","ZipArchive.ExtractToFunc","ZipArchive.Flush","ZipArchive.Open"],"path":"github.com/unknwon/cae/zip"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2021-0228.json"}}],"schema_version":"1.7.5","credits":[{"name":"Georgios Gkitsas of Snyk Security Team"}]}