CVE-2022-26945
HashiCorp go-getter unsafe downloads could lead to asymmetric resource exhaustion
Also known as CVE-2022-30321, CVE-2022-30322, CVE-2022-30323, GHSA-28r2-q6m8-9hpx, GHSA-cjr4-fv6c-f3mv, GHSA-fcgg-rvwg-jv58, GHSA-x24g-9w7v-vprh, GO-2022-0586
Mitigation
- Upgrade github.com/hashicorp/go-getter to one of 1.6.1, 2.1.0 (or later in the same release line).
- Upgrade github.com/hashicorp/go-getter/v2 to 2.1.0 or later.
- Upgrade github.com/hashicorp/go-getter/s3/v2 to 2.1.0 or later.
- Upgrade github.com/hashicorp/go-getter/gcs/v2 to 2.1.0 or later.
Who should check
- Projects that depend on Go package github.com/hashicorp/go-getter (< 1.6.1)
- Projects that depend on Go package github.com/hashicorp/go-getter/v2 (< 2.1.0)
- Projects that depend on Go package github.com/hashicorp/go-getter/s3/v2 (< 2.1.0)
- Projects that depend on Go package github.com/hashicorp/go-getter/gcs/v2 (< 2.1.0)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- github.com/hashicorp/go-getter < 1.6.1; github.com/hashicorp/go-getter/v2 < 2.1.0; github.com/hashicorp/go-getter/s3/v2 < 2.1.0; github.com/hashicorp/go-getter/gcs/v2 < 2.1.0
- Fixed in
- 1.6.1, 2.1.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.59% chance of exploitation in 30 days (percentile 76, 2026-11-26)
- CWE
- CWE-22, CWE-59, CWE-77
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/hashicorp/go-getter | < 1.6.1 | 1.6.1, 2.1.0 | osv |
| Go github.com/hashicorp/go-getter/v2 | < 2.1.0 | 2.1.0 | osv |
| Go github.com/hashicorp/go-getter/s3/v2 | < 2.1.0 | 2.1.0 | osv |
| Go github.com/hashicorp/go-getter/gcs/v2 | < 2.1.0 | 2.1.0 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-26945. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-26945.md Affected: github.com/hashicorp/go-getter < 1.6.1; github.com/hashicorp/go-getter/v2 < 2.1.0; github.com/hashicorp/go-getter/s3/v2 < 2.1.0; github.com/hashicorp/go-getter/gcs/v2 < 2.1.0 Fixed in: 1.6.1, 2.1.0 Steps: 1. Search this machine and project for github.com/hashicorp/go-getter (Go), github.com/hashicorp/go-getter/v2 (Go), github.com/hashicorp/go-getter/s3/v2 (Go), github.com/hashicorp/go-getter/gcs/v2 (Go), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://discuss.hashicorp.com/
- https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/39930
- https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/
- https://nvd.nist.gov/vuln/detail/CVE-2022-30323
- https://nvd.nist.gov/vuln/detail/CVE-2022-30322
- https://nvd.nist.gov/vuln/detail/CVE-2022-30321
- https://nvd.nist.gov/vuln/detail/CVE-2022-26945
Patches
FAQ
Is CVE-2022-26945 being exploited?
There is no confirmed exploitation: CVE-2022-26945 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.59% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-26945?
Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2022-26945?
github.com/hashicorp/go-getter < 1.6.1; github.com/hashicorp/go-getter/v2 < 2.1.0; github.com/hashicorp/go-getter/s3/v2 < 2.1.0; github.com/hashicorp/go-getter/gcs/v2 < 2.1.0.
Is there a fix for CVE-2022-26945?
Yes. Fixed in 1.6.1, 2.1.0. Upgrade github.com/hashicorp/go-getter to one of 1.6.1, 2.1.0 (or later in the same release line). Upgrade github.com/hashicorp/go-getter/v2 to 2.1.0 or later. Upgrade github.com/hashicorp/go-getter/s3/v2 to 2.1.0 or later. Upgrade github.com/hashicorp/go-getter/gcs/v2 to 2.1.0 or later.
How do I check if I'm affected by CVE-2022-26945?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.