Bug 1212073 (CVE-2023-29402)

Summary: VUL-0: CVE-2023-29402: go1.19,go1.20: cmd/go: cgo code injection
Product: [Novell Products] SUSE Security Incidents Reporter: Jeff Kowalczyk <jkowalczyk>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jeff Kowalczyk 2023-06-06 21:22:01 UTC
The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo.

This may occur when running an untrusted module which contains directories with newline characters in their names. Modules which are retrieved using the go command, i.e. via "go get", are not affected (modules retrieved using GOPATH-mode, i.e. GO111MODULE=off, may be affected).

Thanks to Juho Nurminen of Mattermost for reporting this issue.

This is CVE-2023-29402 and Go issue https://go.dev/issue/60167.
Comment 2 OBSbugzilla Bot 2023-06-07 00:35:10 UTC
This is an autogenerated message for OBS integration:
This bug (1212073) was mentioned in
https://build.opensuse.org/request/show/1091159 Factory / go1.19
https://build.opensuse.org/request/show/1091160 Factory / go1.20
Comment 4 Maintenance Automation 2023-06-16 16:30:04 UTC
SUSE-SU-2023:2526-1: An update that solves four vulnerabilities and has one fix can now be installed.

Category: security (moderate)
Bug References: 1206346, 1212073, 1212074, 1212075, 1212076
CVE References: CVE-2023-29402, CVE-2023-29403, CVE-2023-29404, CVE-2023-29405
Sources used:
openSUSE Leap 15.4 (src): go1.20-1.20.5-150000.1.14.1
openSUSE Leap 15.5 (src): go1.20-1.20.5-150000.1.14.1
Development Tools Module 15-SP4 (src): go1.20-1.20.5-150000.1.14.1
Development Tools Module 15-SP5 (src): go1.20-1.20.5-150000.1.14.1
SUSE Linux Enterprise Real Time 15 SP3 (src): go1.20-1.20.5-150000.1.14.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 5 Maintenance Automation 2023-06-16 16:30:06 UTC
SUSE-SU-2023:2525-1: An update that solves four vulnerabilities and has one fix can now be installed.

Category: security (moderate)
Bug References: 1200441, 1212073, 1212074, 1212075, 1212076
CVE References: CVE-2023-29402, CVE-2023-29403, CVE-2023-29404, CVE-2023-29405
Sources used:
openSUSE Leap 15.4 (src): go1.19-1.19.10-150000.1.34.1
openSUSE Leap 15.5 (src): go1.19-1.19.10-150000.1.34.1
Development Tools Module 15-SP4 (src): go1.19-1.19.10-150000.1.34.1
Development Tools Module 15-SP5 (src): go1.19-1.19.10-150000.1.34.1
SUSE Linux Enterprise Real Time 15 SP3 (src): go1.19-1.19.10-150000.1.34.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Marcus Meissner 2023-10-06 12:57:22 UTC
done