Go 1.17.1 のリリース【セキュリティ・アップデート】
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 thecrypto/rand
,embed
,go/types
,html/template
, andnet/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
andOpenReader
functions inarchive/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
アップデートは計画的に。
参考図書
- プログラミング言語Go (ADDISON-WESLEY PROFESSIONAL COMPUTING SERIES)
- Alan A.A. Donovan (著), Brian W. Kernighan (著), 柴田 芳樹 (翻訳)
- 丸善出版 2016-06-20
- 単行本(ソフトカバー)
- 4621300253 (ASIN), 9784621300251 (EAN), 4621300253 (ISBN)
- 評価
著者のひとりは(あの「バイブル」とも呼ばれる)通称 “K&R” の K のほうである。この本は Go 言語の教科書と言ってもいいだろう。と思ったら絶版状態らしい(2025-01 現在)。復刊を望む!