From 64413c20ef4f01d02c81626e9989c97ee2f9bdf1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 3 Apr 2025 12:34:54 +0200 Subject: [PATCH] update to go1.23.8 (fix CVE-2025-22871) full diff: https://github.com/golang/go/compare/go1.23.7...go1.23.8 release notes: https://go.dev/doc/devel/release#go1.24.2 go1.23.8 (released 2025-04-01) includes security fixes to the net/http package, as well as bug fixes to the runtime and the go command. See the Go 1.23.8 milestone on our issue tracker for details; https://github.com/golang/go/issues?q=milestone%3AGo1.23.8+label%3ACherryPickApproved From the mailing list: Hello gophers, We have just released Go versions 1.24.2 and 1.23.8, minor point releases. These minor releases include 1 security fixes following the security policy: - net/http: request smuggling through invalid chunked data The net/http package accepted data in the chunked transfer encoding containing an invalid chunk-size line terminated by a bare LF. When used in conjunction with a server or proxy which incorrectly interprets a bare LF in a chunk extension as part of the extension, this could permit request smuggling. The net/http package now rejects chunk-size lines containing a bare LF. Thanks to Jeppe Bonde Weikop for reporting this issue. This is CVE-2025-22871 and Go issue https://go.dev/issue/71988. Signed-off-by: Sebastiaan van Stijn --- .github/workflows/codeql.yml | 2 +- .github/workflows/test.yml | 2 +- .golangci.yml | 2 +- Dockerfile | 2 +- docker-bake.hcl | 2 +- dockerfiles/Dockerfile.dev | 2 +- dockerfiles/Dockerfile.lint | 2 +- dockerfiles/Dockerfile.vendor | 2 +- e2e/testdata/Dockerfile.gencerts | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e7988732a8..219290bf60 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -63,7 +63,7 @@ jobs: name: Update Go uses: actions/setup-go@v5 with: - go-version: "1.23.7" + go-version: "1.23.8" - name: Initialize CodeQL uses: github/codeql-action/init@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 369e53cba7..e8725ef604 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -66,7 +66,7 @@ jobs: name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.23.7" + go-version: "1.23.8" - name: Test run: | diff --git a/.golangci.yml b/.golangci.yml index d360606f72..750eff5d51 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -44,7 +44,7 @@ run: # which causes it to fallback to go1.17 semantics. # # TODO(thaJeztah): update "usetesting" settings to enable go1.24 features once our minimum version is go1.24 - go: "1.23.7" + go: "1.23.8" timeout: 5m linters-settings: diff --git a/Dockerfile b/Dockerfile index f7493bd49f..386a3c46de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG BASE_VARIANT=alpine ARG ALPINE_VERSION=3.21 ARG BASE_DEBIAN_DISTRO=bookworm -ARG GO_VERSION=1.23.7 +ARG GO_VERSION=1.23.8 ARG XX_VERSION=1.6.1 ARG GOVERSIONINFO_VERSION=v1.4.1 ARG GOTESTSUM_VERSION=v1.12.0 diff --git a/docker-bake.hcl b/docker-bake.hcl index 655af0725a..499e8f32b6 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -1,5 +1,5 @@ variable "GO_VERSION" { - default = "1.23.7" + default = "1.23.8" } variable "VERSION" { default = "" diff --git a/dockerfiles/Dockerfile.dev b/dockerfiles/Dockerfile.dev index 01f03d5856..8b5a1c56a4 100644 --- a/dockerfiles/Dockerfile.dev +++ b/dockerfiles/Dockerfile.dev @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.23.7 +ARG GO_VERSION=1.23.8 ARG ALPINE_VERSION=3.21 # BUILDX_VERSION sets the version of buildx to install in the dev container. diff --git a/dockerfiles/Dockerfile.lint b/dockerfiles/Dockerfile.lint index 46b10adeff..d3fdb8f446 100644 --- a/dockerfiles/Dockerfile.lint +++ b/dockerfiles/Dockerfile.lint @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.23.7 +ARG GO_VERSION=1.23.8 ARG ALPINE_VERSION=3.21 ARG GOLANGCI_LINT_VERSION=v1.64.5 diff --git a/dockerfiles/Dockerfile.vendor b/dockerfiles/Dockerfile.vendor index 9a7f860120..cfc0919386 100644 --- a/dockerfiles/Dockerfile.vendor +++ b/dockerfiles/Dockerfile.vendor @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.23.7 +ARG GO_VERSION=1.23.8 ARG ALPINE_VERSION=3.21 ARG MODOUTDATED_VERSION=v0.8.0 diff --git a/e2e/testdata/Dockerfile.gencerts b/e2e/testdata/Dockerfile.gencerts index 81c1da71e8..73172ae046 100644 --- a/e2e/testdata/Dockerfile.gencerts +++ b/e2e/testdata/Dockerfile.gencerts @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.23.7 +ARG GO_VERSION=1.23.8 FROM golang:${GO_VERSION}-alpine AS generated ENV GOTOOLCHAIN=local