# CVE-2023-45285: Command 'go get' may unexpectedly fallback to insecure git in cmd/go

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.14%, higher than 67% of CVEs (2026-12-02)
- Published: 2023-12-06T16:22:51.000Z
- Modified: 2026-09-08T08:47:49.252Z
- Also known as: GO-2023-2383, BIT-GOLANG-2023-45285
- Related: CGA-fxmm-m535-wqj5, RHSA-2024:0887, RHSA-2024:1041, RHSA-2024:1131
- Weaknesses: CWE-636
- Assigned by: 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).

(As written by CVE List.)

## Affected

- cmd/go: before 1.20.12; from 1.21.0-0 before 1.21.5
- toolchain (Go): before 1.20.12; from 1.21.0-0 before 1.21.5
- golang go: before 1.20.12; from 1.21.0-0 before 1.21.5
- golang (Bitnami): before 1.20.12; from 1.21.0-0 before 1.21.5

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ> (advisory, mailing-list, vendor-advisory, web)
- <https://go.dev/issue/63845> (advisory, issue-tracking, report, vendor-advisory)
- <https://go.dev/cl/540257> (fix, patch)
- <https://pkg.go.dev/vuln/GO-2023-2383> (advisory, patch, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIU6HOGV6RRIKWM57LOXQA75BGZSIH6G/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45285> (web)

## Sources

- CVE List: [CVE-2023-45285](https://www.cve.org/CVERecord?id=CVE-2023-45285), CVE Terms of Use, modified 2025-02-13
- Go Vulnerability Database: [GO-2023-2383](https://pkg.go.dev/vuln/GO-2023-2383), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-45285](https://nvd.nist.gov/vuln/detail/CVE-2023-45285), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2023-45285](https://osv.dev/vulnerability/BIT-GOLANG-2023-45285), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-45285 · Whole record: https://cve.day/CVE-2023-45285.json · Rebuilt by cve.day 2026-11-25T22:58:31.084Z
