Bug 2253323 (CVE-2023-45285) - CVE-2023-45285 golang: cmd/go: Protocol Fallback when fetching modules
Summary: CVE-2023-45285 golang: cmd/go: Protocol Fallback when fetching modules
Keywords:
Status: NEW
Alias: CVE-2023-45285
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2253324 2253325 2253326 2253327 2253347
Blocks: 2253319
TreeView+ depends on / blocked
 
Reported: 2023-12-06 20:25 UTC by Patrick Del Bello
Modified: 2024-10-10 13:55 UTC (History)
18 users (show)

Fixed In Version: golang 1.20.12, golang 1.21.0-0, golang 1.21.5
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Golang package cmd/go. This issue permits the fallback to insecure "git://" if trying to fetch a .git module that has no "https://" or "git+ssh://" available.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:7198 0 None None None 2024-02-27 20:49:55 UTC
Red Hat Product Errata RHSA-2024:0887 0 None None None 2024-02-20 12:30:06 UTC
Red Hat Product Errata RHSA-2024:1041 0 None None None 2024-02-29 09:03:56 UTC
Red Hat Product Errata RHSA-2024:1131 0 None None None 2024-03-05 18:11:13 UTC

Description Patrick Del Bello 2023-12-06 20:25:43 UTC
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).

https://go.dev/cl/540257
https://go.dev/issue/63845
https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ
https://pkg.go.dev/vuln/GO-2023-2383

Comment 1 Patrick Del Bello 2023-12-06 20:26:08 UTC
Created golang tracking bugs for this issue:

Affects: epel-all [bug 2253324]
Affects: fedora-all [bug 2253325]

Comment 3 errata-xmlrpc 2024-02-20 12:30:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:0887 https://access.redhat.com/errata/RHSA-2024:0887

Comment 4 errata-xmlrpc 2024-02-27 20:49:53 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

Via RHSA-2023:7198 https://access.redhat.com/errata/RHSA-2023:7198

Comment 7 errata-xmlrpc 2024-02-29 09:03:54 UTC
This issue has been addressed in the following products:

  Red Hat Developer Tools

Via RHSA-2024:1041 https://access.redhat.com/errata/RHSA-2024:1041

Comment 8 errata-xmlrpc 2024-03-05 18:11:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:1131 https://access.redhat.com/errata/RHSA-2024:1131


Note You need to log in before you can comment on or make changes to this bug.