CVE-2020-29529
HIGH 7.5CVSS 3.1Unsafe tar unpacking in HashiCorp go-slug
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.
- Published
- 3 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22CWE-59
- Also known as
- GHSA-2g5j-5x95-r6hrGO-2021-0094
- Sources
- NVDJSONOSV GHSA-2g5j-5x95-r6hrJSONOSV GO-2021-0094JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hashicorp | go-slugcpe:2.3:a:hashicorp:go-slug:*:*:*:*:*:*:*:* |
< 0.5.0 | 0.5.0 |
| OSV | Go | github.com/hashicorp/go-slug | < 0.5.0 | 0.5.0 |
References
- https://github.com/hashicorp/go-slug/compare/v0.4.3...v0.5.0 · Patch, Release Notes, Third Party Advisory, WEB
- https://github.com/hashicorp/go-slug/pull/12 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/hashicorp/go-slug/releases/tag/v0.5.0 · Release Notes, Third Party Advisory, WEB
- https://securitylab.github.com/advisories/GHSL-2020-262-zipslip-go-slug · Exploit, Third Party Advisory, ADVISORY, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-29529 · ADVISORY
- https://github.com/hashicorp/go-slug/commit/28cafc59c8da6126a3ae94dfa84181df4073454f · WEB, FIX
- https://github.com/hashicorp/go-slug/commit/764785bc4cbb9e600ad1cf1a6bd21b535c182983 · WEB
- https://github.com/hashicorp/go-slug · PACKAGE
- https://pkg.go.dev/vuln/GO-2021-0094 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 3 Dec 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Feb 2023)