Vulnerability · Published Dec 6, 2023 · Assigned by Go

CVE-2023-45285Command 'go get' may unexpectedly fallback to insecure git in cmd/go

High 7.5

In plain English

A high-severity security flaw in cmd/go from Go toolchain. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)1.1%top 33.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8delve1.20.2-1.module_el8.9.0+3642+43318da8ALSA-2024:0887
AlmaLinux:8go-toolset1.20.12-1.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux:9go-toolset1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux:8golang1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux:9golang1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux:8golang-bin1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux:9golang-bin1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux:8golang-docs1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux:9golang-docs1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux:8golang-misc1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux:9golang-misc1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux:8golang-src1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux:9golang-src1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux:8golang-tests1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux:9golang-tests1.20.12-1.el9_3ALSA-2024:1131
Debian:12golang-1.19no fix listedDEBIAN-CVE-2023-45285
Gotoolchain1.20.12, 1.21.5GO-2023-2383
Ubuntu:22.04:LTSgolang-1.201.20.3-1ubuntu0.1~22.04.1USN-6574-1
Ubuntu:22.04:LTSgolang-1.201.20.3-1ubuntu0.1~22.04.1UBUNTU-CVE-2023-45285
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.2USN-6574-1
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.2UBUNTU-CVE-2023-45285

Affected products (as reported)

VendorProductVersions
Go toolchain cmd/go 0 – before 1.20.121.21.0-0 – before 1.21.5

References