CVE-2023-45285

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

HIGH
7.5
CVSS Score
Published: December 6, 2023 at 04:27 PM UTC
Updated: June 17, 2026 at 06:28 AM UTC
2 products affected across 2 vendorsGoGo

Using cmd/go by Go toolchain?

Get instant alerts when new vulnerabilities affect cmd/go - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.20.121.21.0-0 ≤ v < 1.21.5
Affected range stops below 1.20.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.21.5, so it looks safe — our inference, not a vendor statement
v < 1.20.121.21.0-0 ≤ v < 1.21.51.21.0-0
Affected range stops below 1.20.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.21.5, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card