{"id":"CVE-2023-45285","published":"2023-12-06T16:27:55Z","modified":"2025-02-13T17:14:00Z","title":"Command 'go get' may unexpectedly fallback to insecure git in cmd/go","vendor":"Go toolchain","product":"cmd/go","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01137,"percentile":0.67334,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ","tags":[]},{"url":"https://go.dev/issue/63845","tags":[]},{"url":"https://go.dev/cl/540257","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2023-2383","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIU6HOGV6RRIKWM57LOXQA75BGZSIH6G/","tags":[]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":13.47}]},"vendorSlug":"go-toolchain","affectedVersions":[{"vendor":"Go toolchain","product":"cmd/go","versions":["< 1.20.12",">= 1.21.0-0, < 1.21.5"]}],"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.20.12",">=1.21.0-0, <1.21.5"],"patched":["1.20.12","1.21.5"],"from":["GO-2023-2383"],"provenance":"source"}],"summary":{"text":"The flaw lies in the go command (cmd/go) of the Go toolchain: when fetching a module whose path ends in \".git\" with go get, it can silently fall back to the insecure git:// protocol if the module cannot be reached over https:// or git+ssh://, even when GOINSECURE is not set for that module. An attacker with network position to intercept or tamper with traffic could exploit this to serve malicious module content, but only in setups where users fetch modules directly and bypass the module proxy (GOPROXY=off).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:08Z"},"euvd":{"id":"EUVD-2023-49586","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-24531","published":"2024-07-02","fixed":"1.21.0-0","kev":false,"link":{"from":"CVE-2023-45285","to":"CVE-2023-24531","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.20.12","toFixed":"1.21.0-0","daysApart":209}]}},{"cve":"CVE-2023-39320","published":"2023-09-08","fixed":"1.21.1","kev":false},{"cve":"CVE-2023-39323","published":"2023-10-05","fixed":"1.21.2","kev":false,"link":{"from":"CVE-2023-39323","to":"CVE-2023-45285","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.20.9","toFixed":"1.20.12","daysApart":62}]}},{"cve":"CVE-2023-45285","published":"2023-12-06","fixed":"1.21.5","kev":false},{"cve":"CVE-2024-24787","published":"2024-05-08","fixed":"1.22.3","kev":false,"link":{"from":"CVE-2023-45285","to":"CVE-2024-24787","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.21.5","toFixed":"1.21.10","daysApart":154}]}},{"cve":"CVE-2024-45340","published":"2025-01-28","fixed":"1.24.0-rc.2","kev":false},{"cve":"CVE-2025-22867","published":"2025-02-06","fixed":"1.24.0-rc.3","kev":false}],"package":"Go:toolchain"}}