{"schemaVersion":3,"id":"CVE-2020-29529","aliases":["UBUNTU-CVE-2020-29529","DEBIAN-CVE-2020-29529","GHSA-2g5j-5x95-r6hr","GO-2021-0094"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2020-12-03T19:04:50.000Z","modified":"2024-08-04T16:55:10.521Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02817,"percentile":0.86434,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.02817},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02817,"percentile":0.86434}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02817,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02817,"percentile":0.86434}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_ADVISORIES_GHSL-2020-262-ZIPSLIP-GO-SLUG","name":"Ghsl 2020 262 Zipslip Go Slug","source":"github","url":"https://securitylab.github.com/advisories/GHSL-2020-262-zipslip-go-slug","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"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.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"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.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"debian","product":"golang-github-hashicorp-go-slug","name":"golang-github-hashicorp-go-slug","label":"golang-github-hashicorp-go-slug","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/golang-github-hashicorp-go-slug","purlType":"deb","versions":[{"text":"< 0.5.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.5.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"golang-github-hashicorp-go-slug","name":"golang-github-hashicorp-go-slug","label":"golang-github-hashicorp-go-slug","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/golang-github-hashicorp-go-slug","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/hashicorp","product":"go-slug","name":"github.com/hashicorp/go-slug","label":"go-slug","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/hashicorp/go-slug","purlType":"golang","versions":[{"text":"< 0.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.5.0","eol":null,"hubHref":null},{"vendor":"hashicorp","product":"go-slug","name":"go-slug","label":"go-slug","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.5.0","eol":null,"hubHref":"/vendor/hashicorp/go-slug"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/hashicorp/go-slug/releases/tag/v0.5.0","label":"github.com/hashicorp/go-slug/releases/tag/v0.5.0","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Release Notes","Third Party Advisory"]},{"url":"https://github.com/hashicorp/go-slug/compare/v0.4.3...v0.5.0","label":"github.com/hashicorp/go-slug/compare/v0.4.3...v0.5.0","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Patch","Release Notes","Third Party Advisory"]},{"url":"https://github.com/hashicorp/go-slug/pull/12","label":"github.com/hashicorp/go-slug/pull/12","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://securitylab.github.com/advisories/GHSL-2020-262-zipslip-go-slug","label":"securitylab.github.com/advisories/GHSL-2020-262-zipslip-go-slug","hostname":"securitylab.github.com","tags":["X Refsource MISC","Advisory","WEB","Exploit","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-29529","label":"ubuntu.com/security/CVE-2020-29529","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-29529","label":"www.cve.org/CVERecord?id=CVE-2020-29529","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-29529","label":"security-tracker.debian.org/tracker/CVE-2020-29529","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-29529","label":"nvd.nist.gov/vuln/detail/CVE-2020-29529","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/hashicorp/go-slug/commit/28cafc59c8da6126a3ae94dfa84181df4073454f","label":"github.com/hashicorp/go-slug/commit/28cafc59c8da6126a3ae94dfa84181df4073454f","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/hashicorp/go-slug/commit/764785bc4cbb9e600ad1cf1a6bd21b535c182983","label":"github.com/hashicorp/go-slug/commit/764785bc4cbb9e600ad1cf1a6bd21b535c182983","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/hashicorp/go-slug","label":"github.com/hashicorp/go-slug","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0094","label":"pkg.go.dev/vuln/GO-2021-0094","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-12-03T19:04:50.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T16:55:10.521Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T16:03:05.371Z","stale":false,"partial":false}}