GHSA-cjr4-fv6c-f3mv
HashiCorp go-getter unsafe downloads could lead to arbitrary host access
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Go | github.com/hashicorp/go-getter | < 1.6.1 | 1.6.1 |
| Go | github.com/hashicorp/go-getter | >= 2.0.0, < 2.1.0 | 2.1.0 |
| Go | github.com/hashicorp/go-getter/v2 | < 2.1.0 | 2.1.0 |
| Go | github.com/hashicorp/go-getter/s3/v2 | < 2.1.0 | 2.1.0 |
| Go | github.com/hashicorp/go-getter/gcs/v2 | < 2.1.0 | 2.1.0 |
Details
As written in the advisory (Markdown source, shown as plain text).
HashiCorp go-getter through 2.0.2 does not safely perform downloads. Arbitrary host access was possible via go-getter path traversal, symlink processing, and command injection flaws.
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2022-30322
- https://github.com/hashicorp/go-getter/pull/359
- https://github.com/hashicorp/go-getter/pull/361
- https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48
- https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45
- https://discuss.hashicorp.com
- https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library
- https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/39930
- https://github.com/hashicorp/go-getter
- https://github.com/hashicorp/go-getter/releases
- https://pkg.go.dev/vuln/GO-2022-0586