Vulnerability Details : CVE-2020-29529
Potential exploit
HashiCorp go-slug up to 0.4.3 did not fully protect against directory traversal while unpacking tar archives, and protections could be bypassed with specific constructions of multiple symlinks. Fixed in 0.5.0.
Vulnerability category: Directory traversal
Products affected by CVE-2020-29529
- cpe:2.3:a:hashicorp:go-slug:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-29529
0.34%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 71 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-29529
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2020-29529
-
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)
-
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.Assigned by: nvd@nist.gov (Primary)
References for CVE-2020-29529
-
https://github.com/hashicorp/go-slug/pull/12
Patch;Third Party Advisory
-
https://github.com/hashicorp/go-slug/compare/v0.4.3...v0.5.0
Comparing v0.4.3...v0.5.0 · hashicorp/go-slug · GitHubPatch;Release Notes;Third Party Advisory
-
https://github.com/hashicorp/go-slug/releases/tag/v0.5.0
Release v0.5.0 · hashicorp/go-slug · GitHubRelease Notes;Third Party Advisory
-
https://securitylab.github.com/advisories/GHSL-2020-262-zipslip-go-slug
GHSL-2020-262: Unsafe handling of symbolic links in go-slug unpacking routine - CVE-2020-29529 - GitHub Security LabExploit;Third Party Advisory
Jump to