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.
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.
Link | Tags |
---|---|
https://github.com/hashicorp/go-slug/releases/tag/v0.5.0 | third party advisory release notes |
https://github.com/hashicorp/go-slug/compare/v0.4.3...v0.5.0 | release notes third party advisory patch |
https://github.com/hashicorp/go-slug/pull/12 | third party advisory patch |
https://securitylab.github.com/advisories/GHSL-2020-262-zipslip-go-slug | third party advisory exploit |