Vulnerability Details : CVE-2020-36560
Potential exploit
Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.
Vulnerability category: Directory traversal
Products affected by CVE-2020-36560
- cpe:2.3:a:go-unzip_project:go-unzip:*:*:*:*:*:go:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-36560
0.16%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 52 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-36560
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.1
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
3.9
|
5.2
|
NIST |
CWE ids for CVE-2020-36560
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2020-36560
-
https://snyk.io/research/zip-slip-vulnerability
Zip Slip Vulnerability | SnykTechnical Description;Third Party Advisory
-
https://github.com/artdarek/go-unzip/pull/2
fix: sanitize filepath names by snoopysecurity · Pull Request #2 · artdarek/go-unzip · GitHubExploit;Third Party Advisory
-
https://github.com/artdarek/go-unzip/commit/4975cbe0a719dc50b12da8585f1f207c82f7dfe0
Merge pull request #2 from snoopysecurity/fix/santize-filename-paths · artdarek/go-unzip@4975cbe · GitHubPatch;Third Party Advisory
-
https://pkg.go.dev/vuln/GO-2020-0034
GO-2020-0034 - Go PackagesThird Party Advisory
Jump to