Browse code

update to go1.25.7

go1.25.7 (released 2026-02-04) includes security fixes to the go command
and the crypto/tls package, as well as bug fixes to the compiler and the
crypto/x509 package. See the Go 1.25.7 milestone on our issue tracker for
details:
https://github.com/golang/go/issues?q=milestone%3AGo1.25.7+label%3ACherryPickApproved

full diff: https://github.com/golang/go/compare/go1.25.6...go1.25.7

From the security mailing list:

> Hello gophers,
>
> We have just released Go versions 1.25.7 and 1.24.13, minor point releases.
>
> These releases include 2 security fixes following the security policy:
>
> - cmd/cgo: remove user-content from doc strings in cgo ASTs
>
> A discrepancy between how Go and C/C++ comments
> were parsed allowed for code smuggling into the
> resulting cgo binary.
>
> To prevent this behavior, the cgo compiler
> will no longer parse user-provided doc
> comments.
>
> Thank you to RyotaK (https://ryotak.net) of
> GMO Flatt Security Inc. for reporting this issue.
>
> This is CVE-2025-61732 and https://go.dev/issue/76697.
>
> - crypto/tls: unexpected session resumption when using Config.GetConfigForClient
>
> Config.GetConfigForClient is documented to use the original Config's session
> ticket keys unless explicitly overridden. This can cause unexpected behavior if
> the returned Config modifies authentication parameters, like ClientCAs: a
> connection initially established with the parent (or a sibling) Config can be
> resumed, bypassing the modified authentication requirements.
>
> If ClientAuth is VerifyClientCertIfGiven or RequireAndVerifyClientCert (on the
> server) or InsecureSkipVerify is false (on the client), crypto/tls now checks
> that the root of the previously-verified chain is still in ClientCAs/RootCAs
> when resuming a connection.
>
> Go 1.26 Release Candidate 2, Go 1.25.6, and Go 1.24.12 had fixed a similar issue
> related to session ticket keys being implicitly shared by Config.Clone. Since
> this fix is broader, the Config.Clone behavior change has been reverted.
>
> Note that VerifyPeerCertificate still behaves as documented: it does not apply
> to resumed connections. Applications that use Config.GetConfigForClient or
> Config.Clone and do not wish to blindly resume connections established with the
> original Config must use VerifyConnection instead (or SetSessionTicketKeys or
> SessionTicketsDisabled).
>
> Thanks to Coia Prant (github.com/rbqvq) for reporting this issue.
>
> This updates CVE-2025-68121 and Go issue https://go.dev/issue/77217.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2026/02/05 18:31:32
Showing 15 changed files
... ...
@@ -16,7 +16,7 @@ on:
16 16
   workflow_call:
17 17
 
18 18
 env:
19
-  GO_VERSION: "1.25.6"
19
+  GO_VERSION: "1.25.7"
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.6"
24
+  GO_VERSION: "1.25.7"
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.6"
23
+  GO_VERSION: "1.25.7"
24 24
   TESTSTAT_VERSION: v0.1.25
25 25
   TEMPLATE_NAME: ${{ inputs.template }}
26 26
 
... ...
@@ -28,7 +28,7 @@ on:
28 28
         default: false
29 29
 
30 30
 env:
31
-  GO_VERSION: "1.25.6"
31
+  GO_VERSION: "1.25.7"
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.6"
26
+  GO_VERSION: "1.25.7"
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.6"
26
+  GO_VERSION: "1.25.7"
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.6"
37
+  GO_VERSION: "1.25.7"
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.6"
26
+  GO_VERSION: "1.25.7"
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.6"
6
+  go: "1.25.7"
7 7
   # Only supported with go modules enabled (build flag -mod=vendor only valid when using modules)
8 8
   # modules-download-mode: vendor
9 9
 
... ...
@@ -1,6 +1,6 @@
1 1
 # syntax=docker/dockerfile:1
2 2
 
3
-ARG GO_VERSION=1.25.6
3
+ARG GO_VERSION=1.25.7
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.6
8
+ARG GO_VERSION=1.25.7
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.6
164
+ARG GO_VERSION=1.25.7
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.6
3
+ARG GO_VERSION=1.25.7
4 4
 
5 5
 FROM golang:${GO_VERSION}-alpine AS base
6 6
 RUN apk add --no-cache bash make yamllint
... ...
@@ -1,6 +1,6 @@
1 1
 # syntax=docker/dockerfile:1
2 2
 
3
-ARG GO_VERSION=1.25.6
3
+ARG GO_VERSION=1.25.7
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.6
3
+ARG GO_VERSION=1.25.7
4 4
 ARG GOVULNCHECK_VERSION=v1.1.4
5 5
 ARG FORMAT=text
6 6