CVE-2023-45285

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

State
Published
Severity
Not scored
Published
Dec 6, 2023
Updated
Feb 13, 2025
Reserved
Oct 6, 2023

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
cmd/goGo toolchain
  • before 1.20.12Affected
  • 1.21.0-0 to before 1.21.5Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.