All reports
Medium

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

Affected versions

Affected versions
<1.20.12 || >=1.21.0-0 <1.21.5
Fixed version
1.20.12 · 1.21.5
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2023-45285

Probability of exploitation in the next 30 days: 1.14%

FIRST EPSS · 2026-11-21

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).

Links

Credits

  • David Leadbeater