Command 'go get' may unexpectedly fallback to insecure git in cmd/go
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 5 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
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).
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Go standard library | cmd/go | before 1.20.12; 1.21.0-0 to before 1.21.5 | 1.20.12, 1.21.5 | Patch available | CNA |
- cmd/go VendorGo standard library Affected before 1.20.12; 1.21.0-0 to before 1.21.5 Fixed in 1.20.12, 1.21.5 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* | before 1.20.12; 1.21.0-0 to before 1.21.5 | Vulnerable | Go standard library |
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* Versions before 1.20.12; 1.21.0-0 to before 1.21.5 Vulnerable ·Go standard library
Remediation
- Fix · CNA cmd/go (Go toolchain) Fixed in 1.20.12, 1.21.5
Red Hat 4 advisories
- RHSA-2024:1131 Released 2024-03-05 · Red Hat rating Moderategolang security update
- Red Hat Enterprise Linux AppStream (v. 9) go-toolset-1.20.12-1.el9_3, golang-1.20.12-1.el9_3, golang-bin-1.20.12-1.el9_3 +4
- RHSA-2024:1041 Released 2024-02-29 · Red Hat rating Moderatego-toolset-1.19-golang security update
- Red Hat Developer Tools for Red Hat Enterprise Linux Server (v. 7) go-toolset-1.19-golang-1.19.13-5.el7_9, go-toolset-1.19-golang-bin-1.19.13-5.el7_9, go-toolset-1.19-golang-docs-1.19.13-5.el7_9 +4
- Red Hat Developer Tools for Red Hat Enterprise Linux Workstation (v. 7) go-toolset-1.19-golang-1.19.13-5.el7_9, go-toolset-1.19-golang-bin-1.19.13-5.el7_9, go-toolset-1.19-golang-docs-1.19.13-5.el7_9 +4
- RHSA-2023:7198 Released 2024-02-27 · Red Hat rating CriticalOpenShift Container Platform 4.15.0 bug fix and security update
- Red Hat OpenShift Container Platform 4.15 openshift4/cloud-network-config-controller-rhel8, openshift4/egress-router-cni-rhel8, openshift4/kube-metrics-server-rhel8 +47
Show 1 more Red Hat advisories
- RHSA-2024:0887 Released 2024-02-20 · Red Hat rating Moderatego-toolset:rhel8 security update
- Red Hat Enterprise Linux AppStream (v. 8) delve-1.20.2-1.module+el8.9.0+18926+5193682d.src::go-toolset:rhel8, delve-1.20.2-1.module+el8.9.0+18926+5193682d.x86_64::go-toolset:rhel8, go-toolset-1.20.12-1.module+el8.9.0+21033+5795bdf6.aarch64::go-toolset:rhel8 +17
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift Virtualization 4 | Affected | No fix yet |
| Red Hat Storage 3 | Affected | No fix planned: Will not fix |
| Red Hat Developer Tools for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2024:1041 |
| Red Hat Developer Tools for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2024:1041 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2024:0887 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:1131 |
| Red Hat OpenShift Container Platform 4.15 | Fixed | RHSA-2023:7198 |
Not affected: 3 products
- OpenShift Service Mesh 2
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 4.15
Timeline
- 2026-10-02 Threatist record created from CVE-2023-45285
- 2026-10-03 Alias added: GHSA-5f94-vhjq-rpg8
References
More Go standard library Go vulnerabilities
- TI-2020-00578 Improper certificate validation in Microsoft Windows KEVCVSS 3.1HIGH 8.1
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2018-05208 The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used… CVSS 3.1HIGH 8.8
- TI-2018-12083 Improper input validation in [UNKNOWN] golang CVSS 3.1HIGH 8.1
- TI-2024-16306 Mishandling of corrupt central directory record in archive/zip CVSS 3.1MEDIUM 5.5
- TI-2021-15910 Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2023-45285 · CVE Program
- CVE-2023-45285 · NVD
- FIRST EPSS
- GHSA-5f94-vhjq-rpg8 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-45285 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences