CVE-2023-45285GO-2023-2383BIT-GOLANG-2023-45285
Command 'go get' may unexpectedly fallback to insecure git in cmd/go
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.20.12, 1.21.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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).
Timeline
- CVE published
- Record last updated
Affected versions
- cmd/go
fixed in 1.20.12; From 1.21.0-0 · fixed in 1.21.5
- toolchainGo
fixed in 1.20.12; From 1.21.0-0 · fixed in 1.21.5