CVE-2022-26945Hashicorp Go-getter
Critical 9.8 No auth needed
Follow: this CVE · Hashicorp · Hashicorp Go-getter We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- 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:H/I:H/A:H
What happens
go-getter up to 1.5.11 and 2.0.2 allowed protocol switching, endless redirect, and configuration bypass via abuse of custom HTTP response header processing. 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 Mitigation Vendor Advisory