{"id":"CVE-2023-45285","state":"PUBLISHED","title":"Command 'go get' may unexpectedly fallback to insecure git in cmd/go","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).","publishedAt":"2023-12-06T16:27:55.521Z","updatedAt":"2025-02-13T17:14:00.033Z","severity":null,"assigner":"Go","products":["Go toolchain cmd/go"],"affected":[{"vendor":"Go toolchain","product":"cmd/go","packageName":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.20.12","versionType":"semver"},{"version":"1.21.0-0","status":"affected","lessThan":"1.21.5","versionType":"semver"}],"collectionURL":"https://pkg.go.dev"}],"references":["https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ","https://go.dev/issue/63845","https://go.dev/cl/540257","https://pkg.go.dev/vuln/GO-2023-2383","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIU6HOGV6RRIKWM57LOXQA75BGZSIH6G/"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:24.729Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/45xxx/CVE-2023-45285.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-45285","state":"PUBLISHED","datePublished":"2023-12-06T16:27:55.521Z","dateUpdated":"2025-02-13T17:14:00.033Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2023-10-06T17:06:26.220Z"},"containers":{"cna":{"title":"Command 'go get' may unexpectedly fallback to insecure git in cmd/go","descriptions":[{"lang":"en","value":"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":[{"vendor":"Go toolchain","product":"cmd/go","packageName":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.20.12","versionType":"semver"},{"version":"1.21.0-0","status":"affected","lessThan":"1.21.5","versionType":"semver"}],"collectionURL":"https://pkg.go.dev"}],"references":[{"url":"https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ"},{"url":"https://go.dev/issue/63845"},{"url":"https://go.dev/cl/540257"},{"url":"https://pkg.go.dev/vuln/GO-2023-2383"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIU6HOGV6RRIKWM57LOXQA75BGZSIH6G/"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-636: Not Failing Securely ('Failing Open')"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2024-01-20T04:06:28.460Z"},"credits":[{"lang":"en","value":"David Leadbeater"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ","tags":["x_transferred"]},{"url":"https://go.dev/issue/63845","tags":["x_transferred"]},{"url":"https://go.dev/cl/540257","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2023-2383","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIU6HOGV6RRIKWM57LOXQA75BGZSIH6G/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T20:21:15.349Z"}}]}}}