{"id":"UBUNTU-CVE-2020-7664","details":"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.","modified":"2025-10-24T04:48:19Z","published":"2020-06-23T19:38:00Z","upstream":["CVE-2020-7664"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-7664"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAEZIP-570383"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-7664"}],"affected":[{"package":{"name":"golang-github-unknwon-cae","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/golang-github-unknwon-cae@0.0~git20160715.0.c6aac99-4?arch=source&distro=bionic"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-unknwon-cae-dev","binary_version":"0.0~git20160715.0.c6aac99-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7664.json"}},{"package":{"name":"golang-github-unknwon-cae","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/golang-github-unknwon-cae@0.0~git20160715.0.c6aac99-4?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20160715.0.c6aac99-4"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-unknwon-cae-dev","binary_version":"0.0~git20160715.0.c6aac99-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7664.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}