CVE-2022-26945 json
HashiCorp go-getter command injection
published 2022-05-25 4 y ago modified 2026-06-17 4 mo ago also 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 , EUVD-2022-5681
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/hashicorp/go-getter 1.6.1, 2.1.0
- go github.com/hashicorp/go-getter/v2 2.1.0
- go github.com/hashicorp/go-getter/s3/v2 2.1.0
- go github.com/hashicorp/go-getter/gcs/v2 2.1.0
- golang-github-hashicorp-go-getter Debian 14 1.8.9-1
debian advisories DEBIAN-CVE-2022-26945
- github.com/hashicorp/go-getter@38e9738 commit
- github.com/hashicorp/go-getter@a2ebce9 commit
- github.com/hashicorp/go-getter#359 pull request
- github.com/hashicorp/go-getter#361 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-26945 updated cvss 9.8
go-getter: command injection vulnerability
-
Red Hat OpenShift Container Platform 4 openshift4/ose-installer-artifacts, openshift4/ose-baremetal-installer-rhel9affected: workaround, no fix available, no fix planned “The fix includes new configuration options to help limit the security exposure and have more secure defaults.”
-
Red Hat Openshift Data Foundation 4 odf4/odr-rhel9-operator Red Hat OpenShift GitOps openshift-gitops-1/gitops-operator-bundleaffected: workaround, no fix planned “The fix includes new configuration options to help limit the security exposure and have more secure defaults.”
-
Red Hat OpenStack Platform 16.2 osp-director-provisioner-container Red Hat Quay 3 quay/quay-operator-rhel8affected: workaround, no fix available “The fix includes new configuration options to help limit the security exposure and have more secure defaults.”
-
Red Hat OpenShift Container Platform 4.8 openshift4/ose-baremetal-rhel8-operator v4.8.0-202208241844.p0.g5492cf5.assembly.stream, openshift4/ose-baremetal-machine-controllers v4.8.0-202211031007.p0.g2dabef7.assembly.stream, openshift4/ose-cluster-baremetal-operator-rhel8 v4.8.0-202209291426.p0.g117d47a.assembly.streamfixed: vendor fix “The fix includes new configuration options to help limit the security exposure and have more secure defaults.” RHSA-2022:7874
-
Red Hat OpenShift Container Platform 4.9 openshift4/ose-installer v4.9.0-202212060115.p0.gf079984.assembly.stream, openshift4/ose-baremetal-rhel8-operator v4.9.0-202208231335.p0.g4e7605b.assembly.stream, openshift4/ose-baremetal-machine-controllers v4.9.0-202210241459.p0.g41aa1f7.assembly.stream, openshift4/ose-cluster-baremetal-operator-rhel8 v4.9.0-202210061647.p0.g1a49892.assembly.streamfixed: vendor fix “The fix includes new configuration options to help limit the security exposure and have more secure defaults.” RHSA-2022:7216
-
Red Hat OpenShift Container Platform 4.10 openshift4/ose-installer v4.10.0-202210250219.p0.g1ffe666.assembly.stream, openshift4/ose-baremetal-rhel8-operator v4.10.0-202208182025.p0.g97ce15e.assembly.stream, openshift4/ose-baremetal-machine-controllers v4.10.0-202209301647.p0.gadff401.assembly.stream, openshift4/ose-cluster-baremetal-operator-rhel8 v4.10.0-202208260945.p0.g23614bb.assembly.streamfixed: vendor fix “The fix includes new configuration options to help limit the security exposure and have more secure defaults.” RHSA-2022:6805
-
Red Hat OpenShift Container Platform 4.11 openshift4/ose-installer v4.11.0-202210250857.p0.g9d1e216.assembly.stream, openshift4/ose-baremetal-rhel8-operator v4.11.0-202208020235.p0.g22b522c.assembly.stream, openshift4/ose-baremetal-machine-controllers v4.11.0-202208020235.p0.ga65be86.assembly.stream, openshift4/ose-cluster-baremetal-operator-rhel8 v4.11.0-202208020235.p0.g0f415d1.assembly.streamfixed: vendor fix “The fix includes new configuration options to help limit the security exposure and have more secure defaults.” RHSA-2022:5069
-
Red Hat OpenStack Platform 16.2 rhosp-rhel8-tech-preview/osp-director-operator 1.2.3-3, rhosp-rhel8-tech-preview/osp-director-downloader 1.2.3-3fixed: vendor fix “The fix includes new configuration options to help limit the security exposure and have more secure defaults.” RHSA-2022:5673
show 1 moreshow fewer
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/subctl-rhel9, rhacm2/agent-service-rhel8, rhacm2/multiclusterhub-rhel8, rhacm2/search-aggregator-rhel8, rhacm2/multicloud-manager-rhel8, rhacm2/submariner-rhel8-operator, +4 more Red Hat OpenShift Container Platform 4.8 openshift4/ose-cli v4.8.0-202208241844.p0.g3de49cf.assembly.stream, openshift4/ose-cli v4.8.0-202211031007.p0.g3de49cf.assembly.stream, openshift4/ose-pod v4.8.0-202208241844.p0.g31d53a1.assembly.stream, openshift4/ose-pod v4.8.0-202209201817.p0.g5cc9227.assembly.stream, openshift4/ose-pod v4.8.0-202211031007.p0.g5cc9227.assembly.stream, openshift4/ose-etcd v4.8.0-202208241844.p0.g3cc60d0.assembly.stream, +295 more Red Hat OpenShift Container Platform 4.9 openshift4/ose-cli v4.9.0-202208231335.p0.gb49c285.assembly.stream, openshift4/ose-cli v4.9.0-202210061647.p0.gb49c285.assembly.stream, openshift4/ose-cli v4.9.0-202210210958.p0.gb49c285.assembly.stream, openshift4/ose-cli v4.9.0-202212060855.p0.g88cfeb4.assembly.stream, openshift4/ose-pod v4.9.0-202208231335.p0.g9e95cb9.assembly.stream, openshift4/ose-pod v4.9.0-202210061647.p0.g9e95cb9.assembly.stream, +610 more Red Hat OpenShift Container Platform 4.10 openshift4/ose-cli v4.10.0-202208301216.p0.gdd2bcd0.assembly.stream, openshift4/ose-cli v4.10.0-202209291217.p0.g442535c.assembly.stream, openshift4/ose-cli v4.10.0-202210211005.p0.g8df677d.assembly.stream, openshift4/ose-pod v4.10.0-202208241855.p0.g012e945.assembly.stream, openshift4/ose-pod v4.10.0-202210241218.p0.g7566c4d.assembly.stream, openshift4/ose-etcd v4.10.0-202208250735.p0.g7afa17c.assembly.stream, +377 more Red Hat OpenShift Container Platform 4.11 openshift4/ose-cli v4.11.0-202208020706.p0.g7075089.assembly.stream, openshift4/ose-cli v4.11.0-202210250857.p0.g142cb44.assembly.stream, openshift4/ose-pod v4.11.0-202208020235.p0.g9546431.assembly.stream, openshift4/ose-pod v4.11.0-202210251429.p0.g5157800.assembly.stream, openshift4/ose-etcd v4.11.0-202208020235.p0.g80cc14e.assembly.stream, openshift4/ose-etcd v4.11.0-202210250857.p0.g53284bc.assembly.stream, +353 more Red Hat OpenStack Platform 16.2 rhosp-rhel8-tech-preview/osp-director-operator-bundle 1.2.3-5not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.74% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/hashicorp/go-getter | <1.6.1 >=2.0.0, <2.1.0 |
1.6.1 2.1.0 |
| go | github.com/hashicorp/go-getter/v2 | <2.1.0 |
2.1.0 |
| go | github.com/hashicorp/go-getter/s3/v2 | <2.1.0 |
2.1.0 |
| go | github.com/hashicorp/go-getter/gcs/v2 | <2.1.0 |
2.1.0 |
Classification
- Weakness
-
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
-
github.com
/hashicorp/go-getter/pull/359
web
-
github.com
/hashicorp/go-getter/pull/361
web, patch
-
github.com
/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48
web, patch
-
github.com
/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45
web
-
discuss.hashicorp.com
web, vendor-advisory
-
discuss.hashicorp.com
/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/39930
web, mitigation, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-26945
advisory
-
github.com
/hashicorp/go-getter
package
-
pkg.go.dev
/vuln/GO-2022-0586
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-30323
advisory
-
discuss.hashicorp.com
/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library
web
-
github.com
/hashicorp/go-getter/releases
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-30322
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-30321
advisory
Sources
- CVE List CVE-2022-26945
- GitHub Advisory GHSA-x24g-9w7v-vprh
- GitHub Advisory GHSA-28r2-q6m8-9hpx
- GitHub Advisory GHSA-cjr4-fv6c-f3mv
- GitHub Advisory GHSA-fcgg-rvwg-jv58
- NVD CVE-2022-26945
- OSV GO-2022-0586
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.