CVE-2022-26945 — Vulnerability in...
HashiCorp go-getter command injection
Summary
Advisory Timeline
- First published May 26, 2022 (1600 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/s3/v2@v2.1.0
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/gcs/v2@v2.1.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: go (4).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| github.com/hashicorp/go-getter/s3/v2 | go | All versions | 2.1.0 |
| github.com/hashicorp/go-getter | go | All versions | 2.1.0 |
| github.com/hashicorp/go-getter/v2 | go | All versions | 2.1.0 |
| github.com/hashicorp/go-getter | go | All versions | 1.6.1 |
| github.com/hashicorp/go-getter/gcs/v2 | go | 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/s3/v2, github.com/hashicorp/go-getter and github.com/hashicorp/go-getter/v2 (and 1 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-26945 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- 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-2026-107806CRITICAL
Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite
- 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-68582CRITICAL
Vikunja: Link-share token reads any tenant's kanban buckets and enumerates usernames/IDs instance-wide (BOLA)
- CVE-2026-7474HIGH
HashiCorp Nomad vulnerable to a path traversal
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies