CVE-2022-26945: hashicorp go-getter Path Traversal
CVSS: 9.8v3.1CriticalModified
AliasesUBUNTU-CVE-2022-26945DEBIAN-CVE-2022-26945GHSA-28r2-q6m8-9hpxCVE-2022-30321CVE-2022-30322CVE-2022-30323GHSA-cjr4-fv6c-f3mvGHSA-fcgg-rvwg-jv58GHSA-x24g-9w7v-vprhGO-2022-0586DEBIAN-CVE-2022-30321DEBIAN-CVE-2022-30322DEBIAN-CVE-2022-30323
Published 25-05-2022Last modified 03-08-2024
Vulnerability summary
CVE-2022-26945 is a critical (CVSS 9.8) Path Traversal vulnerability in hashicorp go-getter. EPSS estimates a 1.74% chance of exploitation in the next 30 days, higher than 77.4% of scored vulnerabilities.
CVSS score
9.8/10
010
Critical · v3.1 (NVD)EPSS score
1.74%
0%100%
Low · +0.02 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Timeline
- 25-05-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versionsCritical 9.8Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSources4 sources · 8.6–9.8
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.6HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:HDiffers
- OSV · GoEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
High 7.5Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:P/I:P/A:PSourcesSingle source
EPSS trend
Probability
1.74%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
+0.02 pp
From 1.72% on 20-09-2026
20-09-202620-10-2026
EPSS score1.74%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- CWE-59Improper Link Resolution Before File Access ('Link Following')The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
- CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Affected systems
Ubuntu2 products
- golang-github-hashicorp-go-getterAll versions (No fix recorded)
- golang-github-jesseduffield-go-getterAll versions (No fix recorded)
Debian1 product
- golang-github-hashicorp-go-getterAll versions (No fix recorded)
Github.com/hashicorp1 product
- go-getter≥ 2.0.0, < 2.1.0 | < 1.6.1
Github.com/hashicorp/go-getter1 product
- v2< 2.1.0
Github.com/hashicorp/go-getter/gcs1 product
- v2< 2.1.0
Github.com/hashicorp/go-getter/s31 product
- v2< 2.1.0
Hashicorp1 product
- go-getter≤ 1.5.11 | 2.0.2
7 vendors · 8 products
References
21 links- discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/39930X Refsource MISCREPORTWEBAdvisoryVendor AdvisoryMitigation