You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@ArchanaWind, I've got a long backlog of code reviews at the moment. Given that only the two most recent Go releases are supported by the Go team, I do not personally plan to review patches for the unsupported releases.
Activity
rolandshoemaker commentedon May 30, 2023
@gopherbot please open backport issues.
gopherbot commentedon May 30, 2023
Backport issue(s) opened: #60515 (for 1.19), #60516 (for 1.20).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.
gopherbot commentedon Jun 6, 2023
Change https://go.dev/cl/501218 mentions this issue:
[release-branch.go1.19] cmd/go: disallow package directories containing newlinesgopherbot commentedon Jun 6, 2023
Change https://go.dev/cl/501222 mentions this issue:
[release-branch.go1.20] cmd/go: disallow package directories containing newlinesgopherbot commentedon Jun 6, 2023
Change https://go.dev/cl/501226 mentions this issue:
cmd/go: disallow package directories containing newlines[release-branch.go1.20] cmd/go: disallow package directories containi…
[release-branch.go1.19] cmd/go: disallow package directories containi…
[-]security: fix CVE-2023-29402[/-][+]cmd/go: cgo code injection [CVE-2023-29402][/+]19 remaining items
[release-branch.go1.19] cmd/cover: error out if a requested source fi…
[release-branch.go1.19] go/printer: error out of Fprint when it would…
[release-branch.go1.20] cmd/go: fix TestScript/build_cwd_newline with…
[release-branch.go1.20] cmd/cgo: error out if the source path used in…
[release-branch.go1.20] cmd/cover: error out if a requested source fi…
[release-branch.go1.20] go/printer: error out of Fprint when it would…
ArchanaWind commentedon Jun 22, 2023
Hi,
Could you please confirm Is this issue present in go1.17.13
Thanks in advance
bcmills commentedon Jun 22, 2023
Yes — see https://pkg.go.dev/vuln/GO-2023-1839.
ArchanaWind commentedon Jun 23, 2023
Hi @bcmills,
Thank you for the quick response,
I have backported the CVE fix to the go1.17.13 version, Could you please review the attached patch and provide you're comments
Thanks in advance
CVE-2023-29402.patch
ianlancetaylor commentedon Jun 23, 2023
@ArchanaWind Just to be clear, Go 1.17 is no longer supported. The only currently supported versions of Go are Go 1.19 and Go 1.20.
bcmills commentedon Jun 23, 2023
@ArchanaWind, I've got a long backlog of code reviews at the moment. Given that only the two most recent Go releases are supported by the Go team, I do not personally plan to review patches for the unsupported releases.
ArchanaWind commentedon Jun 25, 2023
@ianlancetaylor & @bcmills Fine Thank You
cmd/go: disallow package directories containing newlines