Go 1.17.1 のリリース【セキュリティ・アップデート】

no extension

Go 1.17.1 がリリースされた。

今回は1件の脆弱性修正を含んでいる。

go1.17.1 (released 2021-09-09) includes a security fix to the archive/zip package, as well as bug fixes to the compiler, linker, the go command, and to the crypto/rand, embed, go/types, html/template, and net/http packages. See the Go 1.17.1 milestone on our issue tracker for details.

CVE-2021-39293

The fix for CVE-2021-33196 can be bypassed by crafted inputs. As a result, the NewReader and OpenReader functions in archive/zip can still cause a panic or an unrecoverable fatal error when reading an archive that claims to contain a large number of files, regardless of its actual size.

Go 1.16.5 の修正が直りきってなかったようだ。 CVE-2021-33196 は CVSSv3.1 基本評価値が 7.5 とヤバめの値だったので,今回も早めに対処するのがいいだろう。

(以下未稿)

例によって…

Ubuntu の APT で管理している Go コンパイラは古いので,ダウンロードページからバイナリ(go1.17.1.linux-amd64.tar.gz)を取ってきて手動でインストールすることを強く推奨する。 以下は手動での作業例。

$ cd /usr/local/src
$ sudo curl -L "https://golang.org/dl/go1.17.1.linux-amd64.tar.gz" -O
$ cd ..
$ sudo unlink go # 以前の Go が入っている場合
$ sudo tar xvf src/go1.17.1.linux-amd64.tar.gz
$ sudo mv go go1.17.1
$ sudo ln -s go1.17.1 go
$ go version # /usr/local/go/bin にパスが通っている場合
go version go1.17.1 linux/amd64

アップデートは計画的に。

参考図書

photo
プログラミング言語Go
アラン・ドノバン (著), ブライアン・カーニハン (著), 柴田芳樹 (著)
丸善出版 2016-06-20 (Release 2021-07-13)
Kindle版
B099928SJD (ASIN)
評価     

Kindle 版出た! 一部内容が古びてしまったが,この本は Go 言語の教科書と言ってもいいだろう。感想はこちら

reviewed by Spiegel on 2021-05-22 (powered by PA-APIv5)