CVE-2022-26945
go-getter: command injection vulnerability
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high), Ubuntu (medium).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | github.com/hashicorp/go-getter, github.com/hashicorp/go-getter/gcs/v2, github.com/hashicorp/go-getter/s3/v2 and 1 more | 1.6.1, 2.1.0 and 1 more |
| debian 10 | golang-github-hashicorp-go-getter | no fix listed |
| debian 11 | golang-github-hashicorp-go-getter | no fix listed |
| debian 12 | golang-github-hashicorp-go-getter | no fix listed |
| echo | golang-github-hashicorp-go-getter | no fix listed |
| rapidfort debian 12 | golang-github-hashicorp-go-getter | no fix listed |
| rapidfort debian 13 | golang-github-hashicorp-go-getter | no fix listed |
| ubuntu 18.04-ESM | golang-github-hashicorp-go-getter | no fix listed |
| ubuntu 20.04-ESM | golang-github-hashicorp-go-getter, golang-github-jesseduffield-go-getter | no fix listed |
| ubuntu 22.04 | golang-github-hashicorp-go-getter, golang-github-jesseduffield-go-getter | no fix listed |
| ubuntu 24.04 | golang-github-hashicorp-go-getter, golang-github-jesseduffield-go-getter | no fix listed |
Show all 17 entries from 11 sources
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | github.com/hashicorp/go-getter | 1.6.1, 2.1.0 |
| go::GitHub Security Advisory Go | github.com/hashicorp/go-getter/gcs/v2 | 2.1.0 |
| go::GitHub Security Advisory Go | github.com/hashicorp/go-getter/s3/v2 | 2.1.0 |
| go::GitHub Security Advisory Go | github.com/hashicorp/go-getter/v2 | 2.1.0 |
| debian 10 | golang-github-hashicorp-go-getter | no fix listed |
| debian 11 | golang-github-hashicorp-go-getter | no fix listed |
| debian 12 | golang-github-hashicorp-go-getter | no fix listed |
| echo | golang-github-hashicorp-go-getter | no fix listed |
| rapidfort debian 12 | golang-github-hashicorp-go-getter | no fix listed |
| rapidfort debian 13 | golang-github-hashicorp-go-getter | no fix listed |
| ubuntu 18.04-ESM | golang-github-hashicorp-go-getter | no fix listed |
| ubuntu 20.04-ESM | golang-github-hashicorp-go-getter | no fix listed |
| ubuntu 20.04-ESM | golang-github-jesseduffield-go-getter | no fix listed |
| ubuntu 22.04 | golang-github-hashicorp-go-getter | no fix listed |
| ubuntu 22.04 | golang-github-jesseduffield-go-getter | no fix listed |
| ubuntu 24.04 | golang-github-hashicorp-go-getter | no fix listed |
| ubuntu 24.04 | golang-github-jesseduffield-go-getter | no fix listed |
References
- https://access.redhat.com/security/cve/CVE-2022-26945
- https://discuss.hashicorp.com
- https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/39930
- https://github.com/hashicorp/go-getter
- https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48
- https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45
- https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45%20%28v1.6.0%29
- https://github.com/hashicorp/go-getter/pull/359