CVE-2023-45285Golang Go
High 7.5 No auth needed
Follow: this CVE · Golang · Golang Go We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 63
- Auth required
- No
- Published
- Dec 6, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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).
What to do
- Apply the vendor's security update for Go.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | toolchain |
< 1.20.12 |
1.20.12 |
go get toolchain@v1.20.12 |
| Go | toolchain |
≥ 1.21.0-0 < 1.21.5 |
1.21.5 |
go get toolchain@v1.21.5 |
Per OSV / GitHub Advisories (GO-2023-2383). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | go | < 1.20.12 |
| golang | go | ≥ 1.21.0-0 < 1.21.5 |
Official sources
References
Links published by the sources. Open them with care.
- go.dev Patch
- go.dev Issue Tracking Vendor Advisory
- groups.google.com Mailing List Vendor Advisory
- lists.fedoraproject.org
- pkg.go.dev Patch Vendor Advisory