[security] Go 1.21.2 and Go 1.20.9 are released

3,684 views
Skip to first unread message

anno...@golang.org

unread,
Oct 5, 2023, 3:35:25 PM10/5/23
to golan...@googlegroups.com

Hello gophers,

We have just released Go versions 1.21.2 and 1.20.9, minor point releases.

These minor releases include 1 security fixes following the security policy:

  • cmd/go: line directives allows arbitrary execution during build

    "//line" directives can be used to bypass the restrictions on "//go:cgo_"
    directives, allowing blocked linker and compiler flags to be passed during
    compliation. This can result in unexpected execution of arbitrary code when
    running "go build". The line directive requires the absolute path of the file in
    which the directive lives, which makes exploting this issue significantly more
    complex.

    This is CVE-2023-39323 and Go issue https://go.dev/issue/63211.

View the release notes for more information:
https://go.dev/doc/devel/release#go1.21.2

You can download binary and source distributions from the Go website:
https://go.dev/dl/

To compile from source using a Git clone, update to the release with
git checkout go1.21.2 and build as usual.

Thanks to everyone who contributed to the releases.

Cheers,
Than and Michael for the Go team

Reply all
Reply to author
Forward
0 new messages