CVE-2023-45285
golang: cmd/go: Protocol Fallback when fetching modules
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · December 6, 2023
Updated · September 8, 2026
Description
A flaw was found in the Golang package cmd/go. This issue permits the fallback to insecure "git://" if trying to fetch a .git module that has no "https://" or "git+ssh://" available.
Statement
Red Hat rates this issue as Moderate, as the default configuration avoids this behavior, mitigating the vulnerability.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
This issue only affects users who are not using the module proxy and are fetching modules directly (i.e. GOPROXY=off). In order to mitigate this, keep GOPROXY with default values and use a module proxy. This vulnerability is not explored with default GOPROXY value.
CVSS / CWE
CVSS 3.1 · 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE-693 · Protection Mechanism Failure