CVE-2023-45285 Command 'go get' may unexpectedly fallback to insecure git in cmd/go
The Go toolchain may use insecure git protocols when fetching modules directly, bypassing security checks if the module proxy is disabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-45285?
CVE-2023-45285 is a high-severity vulnerability in Golang Go, published on 6 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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).
Which versions are affected by CVE-2023-45285?
2 open source packages ship an affected version, including golang and toolchain. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
golang Bitnami | All versions | 1.20.12, 1.21.5 |
toolchain Go | All versions | 1.20.12, 1.21.5 |
Products include Golang Go.
How do I fix CVE-2023-45285?
Upgrade golang to a fixed version for your release line: 1.20.12 or 1.21.5.
Is CVE-2023-45285 being exploited?
There is no known exploitation of CVE-2023-45285 in the wild and no public exploit code.
Other vulnerabilities in Golang Go
- CVE-2020-0601 Microsoft Windows CryptoAPI Spoofing
- CVE-2026-27143 Missing bound checks can lead to memory corruption in safe Go in cmd/compile
- CVE-2024-24790 Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip
- CVE-2023-39320 Arbitrary code execution via go.mod toolchain directive in cmd/go
- CVE-2023-24540 Improper handling of JavaScript whitespace in html/template
Sources
Also known as AZL-32101, AZL-32103, AZL-37323, AZL-37438, AZL-79014, AZL-98985 and 7 more.