CVE-2022-30321Hashicorp Go-getter
High 8.6 No auth needed
Follow: this CVE · Hashicorp · Hashicorp Go-getter We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 3.1
- 8.6
- EPSS
- —
- Auth required
- No
- Published
- May 25, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
What happens
go-getter up to 1.5.11 and 2.0.2 allowed arbitrary host access via go-getter path traversal, symlink processing, and command injection flaws. Fixed in 1.6.1 and 2.1.0.
What to do
- Apply the vendor's security update for Go-getter.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/hashicorp/go-getter |
< 1.6.1 |
1.6.1 |
go get github.com/hashicorp/go-getter@v1.6.1 |
| Go | github.com/hashicorp/go-getter |
≥ 2.0.0 < 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter@v2.1.0 |
| Go | github.com/hashicorp/go-getter |
< 1.6.1 |
1.6.1 |
go get github.com/hashicorp/go-getter@v1.6.1 |
| Go | github.com/hashicorp/go-getter |
≥ 2.0.0 < 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter@v2.1.0 |
| Go | github.com/hashicorp/go-getter |
< 1.6.1 |
1.6.1 |
go get github.com/hashicorp/go-getter@v1.6.1 |
| Go | github.com/hashicorp/go-getter |
≥ 2.0.0 < 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter@v2.1.0 |
| Go | github.com/hashicorp/go-getter |
< 1.6.1 |
1.6.1 |
go get github.com/hashicorp/go-getter@v1.6.1 |
| Go | github.com/hashicorp/go-getter |
≥ 2.0.0 < 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter@v2.1.0 |
| Go | github.com/hashicorp/go-getter |
< 1.6.1 |
1.6.1 |
go get github.com/hashicorp/go-getter@v1.6.1 |
| Go | github.com/hashicorp/go-getter/gcs/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/gcs/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/gcs/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/gcs/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/gcs/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/gcs/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/gcs/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/gcs/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/gcs/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/gcs/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/s3/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/s3/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/s3/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/s3/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/s3/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/s3/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/s3/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/s3/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/s3/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/s3/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/v2@v2.1.0 |
| Go | github.com/hashicorp/go-getter/v2 |
< 2.1.0 |
2.1.0 |
go get github.com/hashicorp/go-getter/v2@v2.1.0 |
Per OSV / GitHub Advisories (GHSA-28r2-q6m8-9hpx, GHSA-cjr4-fv6c-f3mv, GHSA-fcgg-rvwg-jv58, GHSA-x24g-9w7v-vprh, GO-2022-0586). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hashicorp | go-getter | ≤ 1.5.11 |
| hashicorp | go-getter | 2.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.hashicorp.com Vendor Advisory
- discuss.hashicorp.com Vendor Advisory
- github.com Release Notes Third Party Advisory