CVE-2020-29529
mediumpriority · track · 31EPSS 0.028 · 86 %ileEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-2g5j-5x95-r6hrUnsafe tar unpacking in HashiCorp go-slug2023-02-06ghsa · osvUS
HashiCorp go-slug before 0.5.0 does not address attempts at directory traversal involving ../ and symlinks.
- GO-2021-0094Directory traversal in github.com/hashicorp/go-slug2021-04-14vendor · osvUS
Protections against directory traversal during archive extraction can be bypassed by chaining multiple symbolic links within the archive. This allows a malicious attacker to cause files to be created outside of the target directory. Additionally if the attacker is able to read extracted files they may create symbolic links to arbitrary files on the system which the unpacker has permissions to read.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (15)
External citations — patches, advisories, analysis.
- https://github.com/hashicorp/go-slug/compare/v0.4.3...v0.5.0cnnvd
- https://github.com/hashicorp/go-slug/pull/12cnnvd
- https://github.com/hashicorp/go-slug/releases/tag/v0.5.0cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-29529cnnvd
- https://packetstormsecurity.com/files/162151/Red-Hat-Security-Advisory-2021-1168-01.htmlcnnvd
- https://securitylab.github.com/advisories/GHSL-2020-262-zipslip-go-slugcnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.1225cnnvd
- https://github.com/hashicorp/go-slug/compare/v0.4.3...v0.5.0enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan