CVE-2020-29529: hashicorp go-slug Path Traversal
CVSS: 7.5v3.1HighModified
AliasesUBUNTU-CVE-2020-29529DEBIAN-CVE-2020-29529GHSA-2g5j-5x95-r6hrGO-2021-0094
Published 03-12-2020Last modified 04-08-2024
Vulnerability summary
CVE-2020-29529 is a high (CVSS 7.5) Path Traversal vulnerability in hashicorp go-slug. EPSS estimates a 2.82% chance of exploitation in the next 30 days, higher than 86.4% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
7.5/10
010
High · v3.1 (NVD)EPSS score
2.82%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
Timeline
- 03-12-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 4 sources · 2 versionsHigh 7.5Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NSourcesAll 4 agree
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Medium 5.0Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:P/I:N/A:NSourcesSingle source
EPSS trend
Probability
2.82%
Chance of exploitation in the next 30 days
Percentile
86%
Versus all other CVEs
30-day change
0.00 pp
From 2.82% on 21-09-2026
21-09-202621-10-2026
EPSS score2.82%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGhsl 2020 262 Zipslip Go Slug
Maturity: poc
Weaknesses
CWE · root cause- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')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.
- CWE-59Improper Link Resolution Before File Access ('Link Following')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.
Affected systems
Debian1 product
- golang-github-hashicorp-go-slug< 0.5.0-1
Github.com/hashicorp1 product
- go-slug< 0.5.0
Hashicorp1 product
- go-slug< 0.5.0
Ubuntu1 product
- golang-github-hashicorp-go-slugAll versions (No fix recorded)
4 vendors · 4 products
References
12 links- github.com/hashicorp/go-slug/releases/tag/v0.5.0X Refsource MISCREPORTWEBRelease NotesThird Party Advisory
- github.com/hashicorp/go-slug/compare/v0.4.3...v0.5.0X Refsource MISCREPORTWEBPatchRelease NotesThird Party Advisory
- securitylab.github.com/advisories/GHSL-2020-262-zipslip-go-slugX Refsource MISCAdvisoryWEBExploitThird Party Advisory
Show all 12 references
- github.com/hashicorp/go-slugPACKAGE