Bug 2237775 (CVE-2023-39320)

Summary: CVE-2023-39320 golang: cmd/go: go.mod toolchain directive allows arbitrary execution
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ahanwate, askrabec, dbenoit, dcadzow, dfreiber, dkenigsb, fdeutsch, jburrell, jwendell, oramraz, rcernich, rogbas, smullick, twalsh, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: golang 1.21.1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Golang. The go.mod toolchain directive, introduced in Go 1.21, could be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the module proxy and downloaded directly using VCS software.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2238074, 2238075, 2238090, 2238804, 2238805    
Bug Blocks: 2237770    

Description Patrick Del Bello 2023-09-06 20:22:35 UTC
The go.mod toolchain directive, introduced in Go 1.21, could be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the module proxy, as well as modules downloaded directly using VCS software.

Comment 6 Anten Skrabec 2023-09-13 17:17:54 UTC
Created golang tracking bugs for this issue:

Affects: epel-all [bug 2238804]
Affects: fedora-all [bug 2238805]