Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2023-45285

golang: cmd/go: Protocol Fallback when fetching modules

Overview

Published
6 Dec 2023
Modified
17 Jun 2026
High CVE
1 Registry packages
106 OS packages
12 Linux distributions
Yes Fix available

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

Packages affected by CVE-2023-45285
EcosystemPackageVulnerableFixed 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

fixed 3
go-toolset delve
Oracle Linux fixes for CVE-2023-45285
ReleasePackageFixed 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

fixed 2
go
Photon OS fixes for CVE-2023-45285
ReleasePackageFixed in
4.0 go 1.20.12-1.ph4
5.0 go 1.20.12-1.ph5

Red Hat 4 releases · 4 packages

wont fix 1 fixed 5
golang go-toolset-1-19-golang go-toolset delve
Red Hat fixes for CVE-2023-45285
ReleasePackageFixed inAdvisory
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

fixed 8
go1-20 go1-20-openssl go1-21 go1-21-openssl
SUSE Linux Enterprise fixes for CVE-2023-45285
ReleasePackageFixed inAdvisory
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

fixed 4
go-toolset golang delve
alma fixes for CVE-2023-45285
ReleasePackageFixed 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

fixed 68
stakater-reloader-0-0-119 stakater-reloader-0-0-128 gke-gcloud-auth-plugin local-path-provisioner sbom-scorecard nats +62
chainguard fixes for CVE-2023-45285
ReleasePackageFixed 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

affected 3
golang-1-11 golang-1-15 golang-1-19
debian fixes for CVE-2023-45285
ReleasePackageFixed in
10 golang-1-11 affected
11 golang-1-15 affected
12 golang-1-19 affected

echo 1 release · 1 package

affected 1
golang-1-19
echo fixes for CVE-2023-45285
ReleasePackageFixed in
golang-1-19 affected

openSUSE 1 release · 2 packages

fixed 2
go1-20 go1-21
openSUSE fixes for CVE-2023-45285
ReleasePackageFixed inAdvisory
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

affected 1
rootio-golang-1-19
root.io debian fixes for CVE-2023-45285
ReleasePackageFixed in
12 rootio-golang-1-19 affected

ubuntu 3 releases · 2 packages

fixed 6
golang-1-20 golang-1-21
ubuntu fixes for CVE-2023-45285
ReleasePackageFixed 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

fixed 49
gke-gcloud-auth-plugin local-path-provisioner sbom-scorecard nats hey helm-push +43
wolfi fixes for CVE-2023-45285
ReleasePackageFixed 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

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.