unknwon/cae · Security
github.com/unknwon/cae Path Traversal vulnerability
- GHSA ID
- GHSA-88jf-7rch-32qc
- CVE ID
- CVE-2020-7668
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-7668 ↗
- https://github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11 ↗
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUNKNWONCAETZ-570384 ↗
- https://pkg.go.dev/vuln/GO-2020-0041 ↗
- https://snyk.io/research/zip-slip-vulnerability ↗
- https://github.com/advisories/GHSA-88jf-7rch-32qc ↗