Browse code

update to go1.25.5

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 <pawel.gronowski@docker.com>

Paweł Gronowski authored on 2025/12/03 01:58:39
Showing 14 changed files
... ...
@@ -16,7 +16,7 @@ on:
16 16
   workflow_call:
17 17
 
18 18
 env:
19
-  GO_VERSION: "1.25.4"
19
+  GO_VERSION: "1.25.5"
20 20
   GOTESTLIST_VERSION: v0.3.1
21 21
   TESTSTAT_VERSION: v0.1.25
22 22
   SETUP_BUILDX_VERSION: edge
... ...
@@ -21,7 +21,7 @@ on:
21 21
         default: "graphdriver"
22 22
 
23 23
 env:
24
-  GO_VERSION: "1.25.4"
24
+  GO_VERSION: "1.25.5"
25 25
   GOTESTLIST_VERSION: v0.3.1
26 26
   TESTSTAT_VERSION: v0.1.25
27 27
   ITG_CLI_MATRIX_SIZE: 6
... ...
@@ -20,7 +20,7 @@ on:
20 20
         type: string
21 21
 
22 22
 env:
23
-  GO_VERSION: "1.25.4"
23
+  GO_VERSION: "1.25.5"
24 24
   TESTSTAT_VERSION: v0.1.25
25 25
 
26 26
 jobs:
... ...
@@ -28,7 +28,7 @@ on:
28 28
         default: false
29 29
 
30 30
 env:
31
-  GO_VERSION: "1.25.4"
31
+  GO_VERSION: "1.25.5"
32 32
   GOTESTLIST_VERSION: v0.3.1
33 33
   TESTSTAT_VERSION: v0.1.25
34 34
   WINDOWS_BASE_IMAGE: mcr.microsoft.com/windows/servercore
... ...
@@ -23,7 +23,7 @@ on:
23 23
   pull_request:
24 24
 
25 25
 env:
26
-  GO_VERSION: "1.25.4"
26
+  GO_VERSION: "1.25.5"
27 27
   TESTSTAT_VERSION: v0.1.25
28 28
   DESTDIR: ./build
29 29
   SETUP_BUILDX_VERSION: edge
... ...
@@ -23,7 +23,7 @@ on:
23 23
   pull_request:
24 24
 
25 25
 env:
26
-  GO_VERSION: "1.25.4"
26
+  GO_VERSION: "1.25.5"
27 27
   DESTDIR: ./build
28 28
   SETUP_BUILDX_VERSION: edge
29 29
   SETUP_BUILDKIT_IMAGE: moby/buildkit:latest
... ...
@@ -34,7 +34,7 @@ on:
34 34
     - cron: '0 9 * * 4'
35 35
 
36 36
 env:
37
-  GO_VERSION: "1.25.4"
37
+  GO_VERSION: "1.25.5"
38 38
 
39 39
 jobs:
40 40
   codeql:
... ...
@@ -23,7 +23,7 @@ on:
23 23
   pull_request:
24 24
 
25 25
 env:
26
-  GO_VERSION: "1.25.4"
26
+  GO_VERSION: "1.25.5"
27 27
   GIT_PAGER: "cat"
28 28
   PAGER: "cat"
29 29
   SETUP_BUILDX_VERSION: edge
... ...
@@ -3,7 +3,7 @@ version: "2"
3 3
 run:
4 4
   # prevent golangci-lint from deducting the go version to lint for through go.mod,
5 5
   # which causes it to fallback to go1.17 semantics.
6
-  go: "1.25.4"
6
+  go: "1.25.5"
7 7
   concurrency: 2
8 8
   # Only supported with go modules enabled (build flag -mod=vendor only valid when using modules)
9 9
   # modules-download-mode: vendor
... ...
@@ -1,6 +1,6 @@
1 1
 # syntax=docker/dockerfile:1
2 2
 
3
-ARG GO_VERSION=1.25.4
3
+ARG GO_VERSION=1.25.5
4 4
 ARG BASE_DEBIAN_DISTRO="bookworm"
5 5
 ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}"
6 6
 
... ...
@@ -5,7 +5,7 @@
5 5
 
6 6
 # This represents the bare minimum required to build and test Docker.
7 7
 
8
-ARG GO_VERSION=1.25.4
8
+ARG GO_VERSION=1.25.5
9 9
 
10 10
 ARG BASE_DEBIAN_DISTRO="bookworm"
11 11
 ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}"
... ...
@@ -161,7 +161,7 @@ FROM ${WINDOWS_BASE_IMAGE}:${WINDOWS_BASE_IMAGE_TAG}
161 161
 # Use PowerShell as the default shell
162 162
 SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
163 163
 
164
-ARG GO_VERSION=1.25.4
164
+ARG GO_VERSION=1.25.5
165 165
 
166 166
 # GOTESTSUM_VERSION is the version of gotest.tools/gotestsum to install.
167 167
 ARG GOTESTSUM_VERSION=v1.13.0
... ...
@@ -1,6 +1,6 @@
1 1
 # syntax=docker/dockerfile:1
2 2
 
3
-ARG GO_VERSION=1.25.4
3
+ARG GO_VERSION=1.25.5
4 4
 ARG BASE_DEBIAN_DISTRO="bookworm"
5 5
 ARG PROTOC_VERSION=3.11.4
6 6
 
... ...
@@ -1,6 +1,6 @@
1 1
 # syntax=docker/dockerfile:1
2 2
 
3
-ARG GO_VERSION=1.25.4
3
+ARG GO_VERSION=1.25.5
4 4
 ARG GOVULNCHECK_VERSION=v1.1.4
5 5
 ARG FORMAT=text
6 6