GitHub Advisoryadvisory · Go
GHSA-88jf-7rch-32qc github.com/unknwon/cae Path Traversal vulnerability
HIGH
Official page ↗
- Aliases
- CVE-2020-7668
- Ecosystem
- Go
- Packages
- github.com/unknwon/cae
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2021-05-12
Affected packages
• Go github.com/unknwon/cae: < 1.0.1 → fixed in 1.0.1
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.
Related
Alias · CVE (1)
- CVE-2020-7668 In all versions of the package github.com/unknwon/cae/tz, the ExtractTo function doesn't securely escape file paths in zip archives which… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-7668 advisory
- https://github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11 web
- https://github.com/unknwon/cae package
- https://pkg.go.dev/vuln/GO-2020-0041 web
- https://snyk.io/research/zip-slip-vulnerability web
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAETZ-570384 web