From 73b0e4c58995927ab31e0e42351de7cdefe96e55 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 14 Aug 2019 02:27:05 +0200 Subject: [PATCH] Bump golang 1.12.8 (CVE-2019-9512, CVE-2019-9514) go1.12.8 (released 2019/08/13) includes security fixes to the net/http and net/url packages. See the Go 1.12.8 milestone on our issue tracker for details: https://github.com/golang/go/issues?q=milestone%3AGo1.12.8 - net/http: Denial of Service vulnerabilities in the HTTP/2 implementation net/http and golang.org/x/net/http2 servers that accept direct connections from untrusted clients could be remotely made to allocate an unlimited amount of memory, until the program crashes. Servers will now close connections if the send queue accumulates too many control messages. The issues are CVE-2019-9512 and CVE-2019-9514, and Go issue golang.org/issue/33606. Thanks to Jonathan Looney from Netflix for discovering and reporting these issues. This is also fixed in version v0.0.0-20190813141303-74dc4d7220e7 of golang.org/x/net/http2. net/url: parsing validation issue - url.Parse would accept URLs with malformed hosts, such that the Host field could have arbitrary suffixes that would appear in neither Hostname() nor Port(), allowing authorization bypasses in certain applications. Note that URLs with invalid, not numeric ports will now return an error from url.Parse. The issue is CVE-2019-14809 and Go issue golang.org/issue/29098. Thanks to Julian Hector and Nikolai Krein from Cure53, and Adi Cohen (adico.me) for discovering and reporting this issue. Signed-off-by: Sebastiaan van Stijn --- Dockerfile | 2 +- Dockerfile.e2e | 2 +- Dockerfile.simple | 2 +- Dockerfile.windows | 2 +- TESTING.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index b021eff686..906c76e61e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ # ARG CROSS="false" -ARG GO_VERSION=1.12.7 +ARG GO_VERSION=1.12.8 ARG DEBIAN_FRONTEND=noninteractive FROM golang:${GO_VERSION}-stretch AS base diff --git a/Dockerfile.e2e b/Dockerfile.e2e index 2ca7b4fb31..4505392091 100644 --- a/Dockerfile.e2e +++ b/Dockerfile.e2e @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.12.7 +ARG GO_VERSION=1.12.8 FROM golang:${GO_VERSION}-alpine AS base diff --git a/Dockerfile.simple b/Dockerfile.simple index ff64fa4f54..b2ccfa4bf0 100644 --- a/Dockerfile.simple +++ b/Dockerfile.simple @@ -5,7 +5,7 @@ # This represents the bare minimum required to build and test Docker. -ARG GO_VERSION=1.12.7 +ARG GO_VERSION=1.12.8 FROM golang:${GO_VERSION}-stretch diff --git a/Dockerfile.windows b/Dockerfile.windows index c432186cc0..52c0c9b289 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -165,7 +165,7 @@ FROM microsoft/windowsservercore # Use PowerShell as the default shell SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] -ARG GO_VERSION=1.12.7 +ARG GO_VERSION=1.12.8 # Environment variable notes: # - GO_VERSION must be consistent with 'Dockerfile' used by Linux. diff --git a/TESTING.md b/TESTING.md index ba5bcda289..613c1b6435 100644 --- a/TESTING.md +++ b/TESTING.md @@ -115,5 +115,5 @@ You can change a version of golang used for building stuff that is being tested by setting `GO_VERSION` variable, for example: ``` -make GO_VERSION=1.12.7 test +make GO_VERSION=1.12.8 test ```