CVE-2020-7664
HIGH 7.5CVSS 3.1Path Traversal in github.com/unknwon/cae/zip
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.
- Published
- 23 Jun 2020
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-vpx7-vm66-qx8rGO-2021-0228
- Sources
- NVDJSONOSV GHSA-vpx7-vm66-qx8rJSONOSV GO-2021-0228JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | compression_and_archive_extensions_project | compression_and_archive_extensions_zip_projectcpe:2.3:a:compression_and_archive_extensions_project:compression_and_archive_extensions_zip_project:*:*:*:*:*:*:*:* |
all versions | |
| OSV | Go | github.com/unknwon/cae | < 1.0.1 | 1.0.1 |
References
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAEZIP-570383 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7664 · ADVISORY
- https://github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11 · WEB, FIX
- https://github.com/unknwon/cae · WEB
- https://pkg.go.dev/vuln/GO-2021-0228 · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 23 Jun 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 May 2021)