# CVE-2020-29529: Unsafe tar unpacking in HashiCorp go-slug

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.82%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-03T19:04:50.000Z
- Modified: 2026-06-17T03:11:23.703Z
- Also known as: GHSA-2g5j-5x95-r6hr, GO-2021-0094
- Weaknesses: CWE-22, CWE-59
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/hashicorp/go-slug (Go): before 0.5.0
- hashicorp go-slug: before 0.5.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2020-262-zipslip-go-slug> (exploit, advisory, third-party-advisory, web)
- <https://github.com/hashicorp/go-slug/releases/tag/v0.5.0> (release-notes, third-party-advisory, web)
- <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> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-29529> (advisory)
- <https://github.com/hashicorp/go-slug/commit/28cafc59c8da6126a3ae94dfa84181df4073454f> (fix, web)
- <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)

## Sources

- CVE List: [CVE-2020-29529](https://www.cve.org/CVERecord?id=CVE-2020-29529), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-2g5j-5x95-r6hr](https://github.com/advisories/GHSA-2g5j-5x95-r6hr), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2021-0094](https://pkg.go.dev/vuln/GO-2021-0094), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2020-29529](https://nvd.nist.gov/vuln/detail/CVE-2020-29529), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-29529 · Whole record: https://cve.day/CVE-2020-29529.json · Rebuilt by cve.day 2026-11-25T22:57:56.031Z
