CVE-2022-26945 — Vulnerability in hashicorp/go-getter — CVE Details
HashiCorp go-getter command injection
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.59%). Schedule for your next planned update.
Does your project use an affected github.com/hashicorp/go-getter version?
Paste your go.sum to check it for CVE-2022-26945 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
HashiCorp go-getter before 2.0.2 allows Command Injection.
Advisory Timeline
- First published May 26, 2022 (1645 days ago).
- Last revised March 15, 2024 — 659 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/hashicorp/go-getter@v2.1.0
go get github.com/hashicorp/go-getter/v2@v2.1.0
go get github.com/hashicorp/go-getter@v1.6.1
go get github.com/hashicorp/go-getter/s3/v2@v2.1.0
go get github.com/hashicorp/go-getter/gcs/v2@v2.1.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: Go (4).
| Package | Fixed In |
|---|---|
| github.com/hashicorp/go-getter Go · Affected: All versions | 2.1.0 |
| github.com/hashicorp/go-getter/v2 Go · Affected: All versions | 2.1.0 |
| github.com/hashicorp/go-getter Go · Affected: All versions | 1.6.1 |
| github.com/hashicorp/go-getter/s3/v2 Go · Affected: All versions | 2.1.0 |
| github.com/hashicorp/go-getter/gcs/v2 Go · Affected: All versions | 2.1.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-77
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-26945ADVISORY
- https://github.com/hashicorp/go-getter/pull/359WEB
- https://github.com/hashicorp/go-getter/pull/361WEB
- https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48WEB
- https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45WEB
- https://discuss.hashicorp.comWEB
- https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/39930WEB
- https://github.com/hashicorp/go-getterPACKAGE
- https://pkg.go.dev/vuln/GO-2022-0586WEB
Frequently Asked Questions
- What is CVE-2022-26945?
- HashiCorp go-getter command injection. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2022-26945?
- CVE-2022-26945 affects github.com/hashicorp/go-getter, github.com/hashicorp/go-getter/v2 and github.com/hashicorp/go-getter/s3/v2 (and 1 more). It has a 1.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-26945 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 76% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-104099CRITICAL
Fabio: Access-control bypass through unnormalized request paths
- CVE-2022-30324CRITICAL
Privilege escalation in Hashicorp Nomad
- CVE-2020-25816CRITICAL
Token leases could outlive their TTL in HashiCorp Vault
- CVE-2025-6000CRITICAL
Hashicorp Vault has Code Execution Vulnerability via Plugin Configuration
- CVE-2024-3817CRITICAL
HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches
- CVE-2018-9057CRITICAL
HashiCorp Terraform Amazon Web Services (AWS) uses an insecure PRNG
- CVE-2026-77369CRITICAL
Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint
- CVE-2026-7474HIGH
HashiCorp Nomad vulnerable to a path traversal