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

High 7.5 Published Updated

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.

PackageAffectedFixed in
golang BitnamiAll versions1.20.12, 1.21.5
toolchain GoAll versions1.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.

All Golang Go vulnerabilities

Sources

Also known as AZL-32101, AZL-32103, AZL-37323, AZL-37438, AZL-79014, AZL-98985 and 7 more.

Is CVE-2023-45285 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free