Skip to content
OpenAdvisories
Unscored CVE-2023-45285 BIT-golang-2023-45285EUVD-2023-49586GHSA-5f94-vhjq-rpg8GO-2023-2383

Command 'go get' may unexpectedly fallback to insecure git in cmd/go

Published Dec 6, 2023 · Updated Feb 13, 2025 · Assigned by Go

Vendor: Go toolchain Product: cmd/go Package: aactl Package: amass Package: aws-flb-cloudwatch Package: aws-flb-firehose Package: aws-flb-kinesis Package: cass-operator Package: cni-plugins Package: configmap-reload Package: cortex Package: ctop Package: dgraph Package: docker-cli Package: docker-credential-ecr-login Package: flannel-cni-plugin Package: gke-gcloud-auth-plugin Package: go-bindata Package: go-licenses Package: go-md2man Package: gobuster Package: golang Package: golang-1.19 Package: golang-1.20 Package: golang-1.21 Package: gops Package: gosu Package: grpcurl Package: helm-push Package: hey Package: hubble-ui-backend Package: influx Package: ip-masq-agent Package: k3d Package: katib-earlystopping Package: katib-suggestion-goptuna-compat Package: katib-suggestion-hyperband Package: katib-suggestion-hyperopt Package: katib-suggestion-nas-darts Package: katib-suggestion-nas-enas Package: katib-suggestion-optuna-enas Package: katib-suggestion-pbt-enas Package: katib-suggestion-skopt-enas Package: katib-tfevent-metricscollector Package: kind Package: kubernetes-dashboard-metrics-scraper Package: kubernetes-dashboard-metrics-scraper-compat Package: local-path-provisioner Package: mage Package: metrics-server Package: msft-golang Package: nats Package: nri-discovery-kubernetes Package: nsc Package: oras Package: petname Package: protoc-gen-go-grpc Package: render-template Package: sbom-scorecard Package: scorecard Package: slsa-verifier Package: smarter-device-manager Package: sonobuoy Package: sops Package: toolchain Package: vertical-pod-autoscaler Package: wait-for-port Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Go Ecosystem: Ubuntu Ecosystem: Wolfi

Description

Using go get to fetch a module with the ".git" suffix may unexpectedly fallback to the insecure "git://" protocol if the module is unavailable via the secure "https://" and "git+ssh://" protocols, even if GOINSECURE is not set for said module. This only affects users who are not using the module proxy and are fetching modules directly (i.e. GOPROXY=off).

Affected products

VendorProductAffectedFixed
Go toolchain cmd/go < 1.20.12, 1.21.0-0 – < 1.21.5 1.20.12

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 golang-1.19 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS golang-1.20 1.20.3-1ubuntu0.1~22.04.1 USN-6574-1
Ubuntu 22.04 LTS golang-1.21 1.21.1-1~ubuntu22.04.2 USN-6574-1
Ubuntu 20.04 LTS golang-1.20 1.20.3-1ubuntu0.1~20.04.1 USN-6574-1
Ubuntu 20.04 LTS golang-1.21 1.21.1-1~ubuntu20.04.2 USN-6574-1
ReleasePackageFixed inAdvisory
RHEL 9 golang +6 1.20.12-1.el9_3 RHSA-2024:1131
RHEL 8 delve 1.20.2-1.module+el8.9.0+18926+5193682d RHSA-2024:0887
RHEL 8 go-toolset 1.20.12-1.module+el8.9.0+21033+5795bdf6 RHSA-2024:0887
RHEL 8 golang +5 1.20.12-2.module+el8.9.0+21033+5795bdf6 RHSA-2024:0887
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Devtools 2023 go-toolset-1.19-golang +6 1.19.13-5.el7_9 RHSA-2024:1041

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 golang +6 1.20.12-1.el9_3 ALSA-2024:1131
AlmaLinux 8 delve 1.20.2-1.module_el8.9.0+3642+43318da8 ALSA-2024:0887
AlmaLinux 8 go-toolset 1.20.12-1.module_el8.9.0+3728+f1d47c6f ALSA-2024:0887
AlmaLinux 8 golang +5 1.20.12-2.module_el8.9.0+3728+f1d47c6f ALSA-2024:0887
ReleasePackageFixed inAdvisory
SLES 15 SP5 go1.20 1.20.12-150000.1.35.1 SUSE-SU-2023:4708-1
SLES 15 SP5 go1.20-openssl 1.20.12.1-150000.1.17.1 SUSE-SU-2023:4930-1
SLES 15 SP5 go1.21 1.21.5-150000.1.18.1 SUSE-SU-2023:4709-1
SLES 15 SP5 go1.21-openssl 1.21.5.1-150000.1.8.1 SUSE-SU-2023:4931-1
SLES 15 SP4 go1.20 1.20.12-150000.1.35.1 SUSE-SU-2023:4708-1
SLES 15 SP4 go1.20-openssl 1.20.12.1-150000.1.17.1 SUSE-SU-2023:4930-1
SLES 15 SP4 go1.21 1.21.5-150000.1.18.1 SUSE-SU-2023:4709-1
SLES 15 SP4 go1.21-openssl 1.21.5.1-150000.1.8.1 SUSE-SU-2023:4931-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.20 1.20.12-1.1 openSUSE-SU-2024:13491-1
openSUSE Tumbleweed go1.21 1.21.5-1.1 openSUSE-SU-2024:13492-1
openSUSE Leap 15.5 go1.20 1.20.12-150000.1.35.1 SUSE-SU-2023:4708-1
openSUSE Leap 15.5 go1.20-openssl 1.20.12.1-150000.1.17.1 SUSE-SU-2023:4930-1
openSUSE Leap 15.5 go1.21 1.21.5-150000.1.18.1 SUSE-SU-2023:4709-1
openSUSE Leap 15.5 go1.21-openssl 1.21.5.1-150000.1.8.1 SUSE-SU-2023:4931-1
openSUSE Leap 15.4 go1.20 1.20.12-150000.1.35.1 SUSE-SU-2023:4708-1
openSUSE Leap 15.4 go1.20-openssl 1.20.12.1-150000.1.17.1 SUSE-SU-2023:4930-1
openSUSE Leap 15.4 go1.21 1.21.5-150000.1.18.1 SUSE-SU-2023:4709-1
openSUSE Leap 15.4 go1.21-openssl 1.21.5.1-150000.1.8.1 SUSE-SU-2023:4931-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 golang No fix yet —
Azure Linux 2 (CBL-Mariner) golang 1.21.6-1 —
Azure Linux 2 (CBL-Mariner) msft-golang 1.22.3-1. —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 golang +6 1.20.12-1.el9_3 ELSA-2024-1131
Oracle Linux 8 delve 1.20.2-1.0.1.module+el8.9.0+90001+52c302fe ELSA-2024-0887
Oracle Linux 8 golang +6 1.20.12-1.module+el8.9.0+90156+2bd6b1a8 ELSA-2024-0887

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling aactl 0.4.12-r5 —
Wolfi rolling amass 4.2.0-r3 —
Wolfi rolling aws-flb-cloudwatch 1.9.4-r6 —
Wolfi rolling aws-flb-firehose 1.7.2-r6 —
Wolfi rolling aws-flb-kinesis 1.10.2-r6 —
Wolfi rolling cass-operator 1.18.2-r3 —
Wolfi rolling cni-plugins 1.4.0-r1 —
Wolfi rolling configmap-reload 0.12.0-r3 —
Wolfi rolling cortex 1.16.0-r1 —
Wolfi rolling ctop 0.7.7-r10 —
Wolfi rolling dgraph 23.1.0-r4 —
Wolfi rolling docker-cli 24.0.6-r1 —
Wolfi rolling docker-credential-ecr-login 0.7.1-r8 —
Wolfi rolling flannel-cni-plugin 1.2.0-r5 —
Wolfi rolling gke-gcloud-auth-plugin 0.0.2-r6 —
Wolfi rolling go-bindata 3.1.3-r15 —
Wolfi rolling go-licenses 1.6.0-r8 —
Wolfi rolling go-md2man 2.0.3-r1 —
Wolfi rolling gobuster 3.6.0-r4 —
Wolfi rolling gops 0.3.28-r4 —
Wolfi rolling gosu 1.17-r2 —
Wolfi rolling grpcurl 1.8.9-r2 —
Wolfi rolling helm-push 0.10.4-r1 —
Wolfi rolling hey 0.1.4-r9 —
Wolfi rolling hubble-ui-backend 0.13.3-r1 —
Wolfi rolling influx 2.7.3-r8 —
Wolfi rolling ip-masq-agent 2.9.3-r6 —
Wolfi rolling k3d 5.6.0-r5 —
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —
Wolfi rolling kind 0.21.0-r0 —
Wolfi rolling kubernetes-dashboard-metrics-scraper +1 1.0.9-r10 —
Wolfi rolling local-path-provisioner 0.0.26-r2 —
Wolfi rolling mage 1.15.0-r4 —
Wolfi rolling metrics-server 0.6.4-r8 —
Wolfi rolling nats 0.1.1-r4 —
Wolfi rolling nri-discovery-kubernetes 1.7.2-r2 —
Wolfi rolling nsc 2.8.5-r1 —
Wolfi rolling oras 1.1.0-r4 —
Wolfi rolling petname 2.11-r3 —
Wolfi rolling protoc-gen-go-grpc 1.3.0-r7 —
Wolfi rolling render-template 1.0.6-r1 —
Wolfi rolling sbom-scorecard 0.0.7-r6 —
Wolfi rolling scorecard 4.13.1-r1 —
Wolfi rolling slsa-verifier 2.4.1-r1 —
Wolfi rolling smarter-device-manager 1.20.11-r3 —
Wolfi rolling sonobuoy 0.57.1-r1 —
Wolfi rolling sops 3.8.1-r1 —
Wolfi rolling vertical-pod-autoscaler 1.0.0-r2 —
Wolfi rolling wait-for-port 1.0.7-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go toolchain < 1.20.12 · >= 1.21.0-0, < 1.21.5 1.20.12, 1.21.5 GO-2023-2383

Advisories 16

References