From 6f9d1ec3fb8ca4dbbedb1ed91020d9190dd0d848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Tue, 2 Dec 2025 17:58:39 +0100 Subject: [PATCH] update to go1.25.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These releases include 2 security fixes following the security policy: - crypto/x509: excessive resource consumption in printing error string for host certificate validation Within HostnameError.Error(), when constructing an error string, there is no limit to the number of hosts that will be printed out. Furthermore, the error string is constructed by repeated string concatenation, leading to quadratic runtime. Therefore, a certificate provided by a malicious actor can result in excessive resource consumption. HostnameError.Error() now limits the number of hosts and utilizes strings.Builder when constructing an error string. Thanks to Philippe Antoine (Catena cyber) for reporting this issue. This is CVE-2025-61729 and Go issue https://go.dev/issue/76445. - crypto/x509: excluded subdomain constraint does not restrict wildcard SANs An excluded subdomain constraint in a certificate chain does not restrict the usage of wildcard SANs in the leaf certificate. For example a constraint that excludes the subdomain test.example.com does not prevent a leaf certificate from claiming the SAN *.example.com. This is CVE-2025-61727 and Go issue https://go.dev/issue/76442. View the release notes for more information: https://go.dev/doc/devel/release#go1.25.5 Signed-off-by: Paweł Gronowski --- .github/workflows/.test-unit.yml | 2 +- .github/workflows/.test.yml | 2 +- .github/workflows/.vm.yml | 2 +- .github/workflows/.windows.yml | 2 +- .github/workflows/arm64.yml | 2 +- .github/workflows/buildkit.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/test.yml | 2 +- .golangci.yml | 2 +- Dockerfile | 2 +- Dockerfile.simple | 2 +- Dockerfile.windows | 2 +- hack/dockerfiles/generate-files.Dockerfile | 2 +- hack/dockerfiles/govulncheck.Dockerfile | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/.test-unit.yml b/.github/workflows/.test-unit.yml index 314750a090..b3cce9f906 100644 --- a/.github/workflows/.test-unit.yml +++ b/.github/workflows/.test-unit.yml @@ -16,7 +16,7 @@ on: workflow_call: env: - GO_VERSION: "1.25.4" + GO_VERSION: "1.25.5" GOTESTLIST_VERSION: v0.3.1 TESTSTAT_VERSION: v0.1.25 SETUP_BUILDX_VERSION: edge diff --git a/.github/workflows/.test.yml b/.github/workflows/.test.yml index 153a527656..2c1ebe7a72 100644 --- a/.github/workflows/.test.yml +++ b/.github/workflows/.test.yml @@ -21,7 +21,7 @@ on: default: "graphdriver" env: - GO_VERSION: "1.25.4" + GO_VERSION: "1.25.5" GOTESTLIST_VERSION: v0.3.1 TESTSTAT_VERSION: v0.1.25 ITG_CLI_MATRIX_SIZE: 6 diff --git a/.github/workflows/.vm.yml b/.github/workflows/.vm.yml index c8a647cac9..b6f667913e 100644 --- a/.github/workflows/.vm.yml +++ b/.github/workflows/.vm.yml @@ -20,7 +20,7 @@ on: type: string env: - GO_VERSION: "1.25.4" + GO_VERSION: "1.25.5" TESTSTAT_VERSION: v0.1.25 jobs: diff --git a/.github/workflows/.windows.yml b/.github/workflows/.windows.yml index afa587a267..b138408bd6 100644 --- a/.github/workflows/.windows.yml +++ b/.github/workflows/.windows.yml @@ -28,7 +28,7 @@ on: default: false env: - GO_VERSION: "1.25.4" + GO_VERSION: "1.25.5" GOTESTLIST_VERSION: v0.3.1 TESTSTAT_VERSION: v0.1.25 WINDOWS_BASE_IMAGE: mcr.microsoft.com/windows/servercore diff --git a/.github/workflows/arm64.yml b/.github/workflows/arm64.yml index 4a79742cfa..4aeb278314 100644 --- a/.github/workflows/arm64.yml +++ b/.github/workflows/arm64.yml @@ -23,7 +23,7 @@ on: pull_request: env: - GO_VERSION: "1.25.4" + GO_VERSION: "1.25.5" TESTSTAT_VERSION: v0.1.25 DESTDIR: ./build SETUP_BUILDX_VERSION: edge diff --git a/.github/workflows/buildkit.yml b/.github/workflows/buildkit.yml index 8707c30ab6..bd070a4ecb 100644 --- a/.github/workflows/buildkit.yml +++ b/.github/workflows/buildkit.yml @@ -23,7 +23,7 @@ on: pull_request: env: - GO_VERSION: "1.25.4" + GO_VERSION: "1.25.5" DESTDIR: ./build SETUP_BUILDX_VERSION: edge SETUP_BUILDKIT_IMAGE: moby/buildkit:latest diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 5fdb7fbb7f..e8d1c15e42 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -34,7 +34,7 @@ on: - cron: '0 9 * * 4' env: - GO_VERSION: "1.25.4" + GO_VERSION: "1.25.5" jobs: codeql: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d0698c9ef7..e19903b654 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ on: pull_request: env: - GO_VERSION: "1.25.4" + GO_VERSION: "1.25.5" GIT_PAGER: "cat" PAGER: "cat" SETUP_BUILDX_VERSION: edge diff --git a/.golangci.yml b/.golangci.yml index 08bfebb89c..86577f285d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,7 +3,7 @@ version: "2" run: # prevent golangci-lint from deducting the go version to lint for through go.mod, # which causes it to fallback to go1.17 semantics. - go: "1.25.4" + go: "1.25.5" concurrency: 2 # Only supported with go modules enabled (build flag -mod=vendor only valid when using modules) # modules-download-mode: vendor diff --git a/Dockerfile b/Dockerfile index 87e4d373c1..51a7232606 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.25.4 +ARG GO_VERSION=1.25.5 ARG BASE_DEBIAN_DISTRO="bookworm" ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}" diff --git a/Dockerfile.simple b/Dockerfile.simple index 5aeb476ff5..9eba324e26 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.25.4 +ARG GO_VERSION=1.25.5 ARG BASE_DEBIAN_DISTRO="bookworm" ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}" diff --git a/Dockerfile.windows b/Dockerfile.windows index 261dc9ea4c..9f2dd9c95d 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -161,7 +161,7 @@ FROM ${WINDOWS_BASE_IMAGE}:${WINDOWS_BASE_IMAGE_TAG} # Use PowerShell as the default shell SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] -ARG GO_VERSION=1.25.4 +ARG GO_VERSION=1.25.5 # GOTESTSUM_VERSION is the version of gotest.tools/gotestsum to install. ARG GOTESTSUM_VERSION=v1.13.0 diff --git a/hack/dockerfiles/generate-files.Dockerfile b/hack/dockerfiles/generate-files.Dockerfile index 28b2b9891c..65b9abd771 100644 --- a/hack/dockerfiles/generate-files.Dockerfile +++ b/hack/dockerfiles/generate-files.Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.25.4 +ARG GO_VERSION=1.25.5 ARG BASE_DEBIAN_DISTRO="bookworm" ARG PROTOC_VERSION=3.11.4 diff --git a/hack/dockerfiles/govulncheck.Dockerfile b/hack/dockerfiles/govulncheck.Dockerfile index 0b98df0222..17d7b79ed6 100644 --- a/hack/dockerfiles/govulncheck.Dockerfile +++ b/hack/dockerfiles/govulncheck.Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.25.4 +ARG GO_VERSION=1.25.5 ARG GOVULNCHECK_VERSION=v1.1.4 ARG FORMAT=text