CVE-2023-45285Command 'go get' may unexpectedly fallback to insecure git in cmd/go
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
Fixed builds are available from AlmaLinux, Go, Red Hat, Ubuntu: see the table below for the fixed version per release.
Debian has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | golang-1.21 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | golang-1.20 | Fixed | 1.20.3-1ubuntu0.1~22.04.1 | UBUNTU-CVE-2023-45285 |
| Ubuntu 22.04 | golang-1.21 | Fixed | 1.21.1-1~ubuntu22.04.2 | UBUNTU-CVE-2023-45285 |
| Ubuntu 20.04 | golang-1.20 | Fixed | 1.20.3-1ubuntu0.1~20.04.1 | UBUNTU-CVE-2023-45285 |
| Ubuntu 20.04 | golang-1.21 | Fixed | 1.21.1-1~ubuntu20.04.2 | UBUNTU-CVE-2023-45285 |
| Debian 12 | golang-1.19 | Fix pending | DEBIAN-CVE-2023-45285 | |
| Red Hat Enterprise Linux 9 | go-toolset | Fixed | 0:1.20.12-1.el9_3 | RHSA-2024:1131 |
| Red Hat Enterprise Linux 9 | golang | Fixed | 0:1.20.12-1.el9_3 | RHSA-2024:1131 |
| Red Hat Enterprise Linux 9 | golang-bin | Fixed | 0:1.20.12-1.el9_3 | RHSA-2024:1131 |
| Red Hat Enterprise Linux 9 | golang-docs | Fixed | 0:1.20.12-1.el9_3 | RHSA-2024:1131 |
| Red Hat Enterprise Linux 9 | golang-misc | Fixed | 0:1.20.12-1.el9_3 | RHSA-2024:1131 |
| Red Hat Enterprise Linux 9 | golang-src | Fixed | 0:1.20.12-1.el9_3 | RHSA-2024:1131 |
| Red Hat Enterprise Linux 9 | golang-tests | Fixed | 0:1.20.12-1.el9_3 | RHSA-2024:1131 |
| Red Hat Enterprise Linux 8 | delve | Fixed | 0:1.20.2-1.module+el8.9.0+18926+5193682d | RHSA-2024:0887 |
| Red Hat Enterprise Linux 8 | go-toolset | Fixed | 0:1.20.12-1.module+el8.9.0+21033+5795bdf6 | RHSA-2024:0887 |
| Red Hat Enterprise Linux 8 | golang | Fixed | 0:1.20.12-2.module+el8.9.0+21033+5795bdf6 | RHSA-2024:0887 |
| Red Hat Enterprise Linux 8 | golang-bin | Fixed | 0:1.20.12-2.module+el8.9.0+21033+5795bdf6 | RHSA-2024:0887 |
| Red Hat Enterprise Linux 8 | golang-docs | Fixed | 0:1.20.12-2.module+el8.9.0+21033+5795bdf6 | RHSA-2024:0887 |
| Red Hat Enterprise Linux 8 | golang-misc | Fixed | 0:1.20.12-2.module+el8.9.0+21033+5795bdf6 | RHSA-2024:0887 |
| Red Hat Enterprise Linux 8 | golang-src | Fixed | 0:1.20.12-2.module+el8.9.0+21033+5795bdf6 | RHSA-2024:0887 |
| Red Hat Enterprise Linux 8 | golang-tests | Fixed | 0:1.20.12-2.module+el8.9.0+21033+5795bdf6 | RHSA-2024:0887 |
| AlmaLinux 9 | go-toolset | Fixed | 1.20.12-1.el9_3 | ALSA-2024:1131 |
| AlmaLinux 9 | golang | Fixed | 1.20.12-1.el9_3 | ALSA-2024:1131 |
| AlmaLinux 9 | golang-bin | Fixed | 1.20.12-1.el9_3 | ALSA-2024:1131 |
| AlmaLinux 9 | golang-docs | Fixed | 1.20.12-1.el9_3 | ALSA-2024:1131 |
| AlmaLinux 9 | golang-misc | Fixed | 1.20.12-1.el9_3 | ALSA-2024:1131 |
| AlmaLinux 9 | golang-src | Fixed | 1.20.12-1.el9_3 | ALSA-2024:1131 |
| AlmaLinux 9 | golang-tests | Fixed | 1.20.12-1.el9_3 | ALSA-2024:1131 |
| AlmaLinux 8 | delve | Fixed | 1.20.2-1.module_el8.9.0+3642+43318da8 | ALSA-2024:0887 |
| AlmaLinux 8 | go-toolset | Fixed | 1.20.12-1.module_el8.9.0+3728+f1d47c6f | ALSA-2024:0887 |
| AlmaLinux 8 | golang | Fixed | 1.20.12-2.module_el8.9.0+3728+f1d47c6f | ALSA-2024:0887 |
| AlmaLinux 8 | golang-bin | Fixed | 1.20.12-2.module_el8.9.0+3728+f1d47c6f | ALSA-2024:0887 |
| AlmaLinux 8 | golang-docs | Fixed | 1.20.12-2.module_el8.9.0+3728+f1d47c6f | ALSA-2024:0887 |
| AlmaLinux 8 | golang-misc | Fixed | 1.20.12-2.module_el8.9.0+3728+f1d47c6f | ALSA-2024:0887 |
| AlmaLinux 8 | golang-src | Fixed | 1.20.12-2.module_el8.9.0+3728+f1d47c6f | ALSA-2024:0887 |
| AlmaLinux 8 | golang-tests | Fixed | 1.20.12-2.module_el8.9.0+3728+f1d47c6f | ALSA-2024:0887 |
| Go library | toolchain | Fixed | 1.20.12 | GO-2023-2383 |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Go toolchain cmd/go: affected: before 1.20.12, 1.21.0-0 to before 1.21.5; fixed in
1.20.12,1.21.5
References
- https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ
- https://go.dev/issue/63845
- https://go.dev/cl/540257
- https://pkg.go.dev/vuln/GO-2023-2383
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIU6HOGV6RRIKWM57LOXQA75BGZSIH6G/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.