CVE-2023-45285
golang: cmd/go: Protocol Fallback when fetching modules
Overview
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).
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | golang | <1.20.12>=1.21.0-0, <1.21.5 | 1.20.121.21.5 |
Open a package to see all its vulnerabilities.
Operating systems · 153 fixes
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | go-toolset +6 | 1.20.12-1.module+el8.9.0+90156+2bd6b1a8 |
| 8 | delve | 1.20.2-1.0.1.module+el8.9.0+90001+52c302fe |
| 9 | go-toolset +6 | 1.20.12-1.el9_3 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | go | 1.20.12-1.ph4 |
| 5.0 | go | 1.20.12-1.ph5 |
Red Hat 4 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| golang +5 | wont fix | — | |
| 7 | go-toolset-1-19-golang +6 | 0:1.19.13-5.el7_9 | RHSA-2024:1041 |
| 8 (go-toolset:rhel8) | go-toolset | 0:1.20.12-1.module+el8.9.0+21033+5795bdf6 | RHSA-2024:0887 |
| 8 (go-toolset:rhel8) | golang +5 | 0:1.20.12-2.module+el8.9.0+21033+5795bdf6 | RHSA-2024:0887 |
| 8 (go-toolset:rhel8) | delve | 0:1.20.2-1.module+el8.9.0+18926+5193682d | RHSA-2024:0887 |
| 9 | go-toolset +6 | 0:1.20.12-1.el9_3 | RHSA-2024:1131 |
SUSE Linux Enterprise 2 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-20 +2 | 1.20.12-150000.1.35.1 | SUSE-SU-2023:4708-1 |
| 15.4 | go1-20-openssl +2 | 1.20.12.1-150000.1.17.1 | SUSE-SU-2023:4930-1 |
| 15.4 | go1-21 +2 | 1.21.5-150000.1.18.1 | SUSE-SU-2023:4709-1 |
| 15.4 | go1-21-openssl +2 | 1.21.5.1-150000.1.8.1 | SUSE-SU-2023:4931-1 |
| 15.5 | go1-20 +2 | 1.20.12-150000.1.35.1 | SUSE-SU-2023:4708-1 |
| 15.5 | go1-20-openssl +2 | 1.20.12.1-150000.1.17.1 | SUSE-SU-2023:4930-1 |
2 more rows
alma 2 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | go-toolset | 1.20.12-1.module_el8.9.0+3728+f1d47c6f |
| 8 (go-toolset:rhel8) | golang +5 | 1.20.12-2.module_el8.9.0+3728+f1d47c6f |
| 8 (go-toolset:rhel8) | delve | 1.20.2-1.module_el8.9.0+3642+43318da8 |
| 9 | go-toolset +6 | 1.20.12-1.el9_3 |
chainguard 1 release · 68 packages
| Release | Package | Fixed in |
|---|---|---|
| stakater-reloader-0-0-119 | 0.0.119-r4 | |
| stakater-reloader-0-0-128 | 0.0.128-r3 | |
| gke-gcloud-auth-plugin | 0.0.2-r6 | |
| local-path-provisioner | 0.0.26-r2 | |
| sbom-scorecard | 0.0.7-r6 | |
| nats | 0.1.1-r4 |
62 more rows
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | affected |
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | affected |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-20 +3 | 1.20.12-1.1 | openSUSE-SU-2024:13491-1 |
| Tumbleweed | go1-21 +3 | 1.21.5-1.1 | openSUSE-SU-2024:13492-1 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
ubuntu 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 20.04 | golang-1-20 | 1.20.3-1ubuntu0.1~20.04.1 |
| 20.04 | golang-1-21 | 1.21.1-1~ubuntu20.04.2 |
| 20.04-ESM | golang-1-20 | 1.20.3-1ubuntu0.1~20.04.1 |
| 20.04-ESM | golang-1-21 | 1.21.1-1~ubuntu20.04.2 |
| 22.04 | golang-1-20 | 1.20.3-1ubuntu0.1~22.04.1 |
| 22.04 | golang-1-21 | 1.21.1-1~ubuntu22.04.2 |
wolfi 1 release · 49 packages
| Release | Package | Fixed in |
|---|---|---|
| gke-gcloud-auth-plugin | 0.0.2-r6 | |
| local-path-provisioner | 0.0.26-r2 | |
| sbom-scorecard | 0.0.7-r6 | |
| nats | 0.1.1-r4 | |
| hey | 0.1.4-r9 | |
| helm-push | 0.10.4-r1 |
43 more rows
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:1131
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-45285
- bugzilla.redhat.com https://bugzilla.redhat.com/2253323
- bugzilla.redhat.com https://bugzilla.redhat.com/2253330
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2024-1131.html
- github.com https://github.com/golang/go/commit/23c943e5296c6fa3a6f9433bd929306c4dbf2aa3 (go1.21.5)
- github.com https://github.com/golang/go/commit/46bc33819ac86a9596b8059235842f0e0c7469bd (go1.20.12)
- go.dev https://go.dev/cl/540257
- go.dev https://go.dev/issue/63845
- groups.google.com https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ
Show all 17 references
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-45285.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-1131.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIU6HOGV6RRIKWM57LOXQA75BGZSIH6G/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-45285
- pkg.go.dev https://pkg.go.dev/vuln/GO-2023-2383
- ubuntu.com https://ubuntu.com/security/notices/USN-6574-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-45285
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.