CVE-2023-45285

published 6 Dec 2023 · updated 12 Nov 2026

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

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.20.12 and 1.21.5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go toolchain<1.20.12, >=1.21.0-0 <1.21.51.20.12, 1.21.5

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-45285 severity on Zeptric[![CVE-2023-45285](https://zeptric.io/badge/cve/CVE-2023-45285.svg)](https://zeptric.io/cve/CVE-2023-45285)