Browse code

update to go1.23.5 (fix CVE-2024-45341, CVE-2024-45336)

go1.23.5 (released 2025-01-16) includes security fixes to the crypto/x509 and
net/http packages, as well as bug fixes to the compiler, the runtime, and the
net package. See the Go 1.23.5 milestone on our issue tracker for details;

- https://github.com/golang/go/issues?q=milestone%3AGo1.23.5+label%3ACherryPickApproved
- full diff: https://github.com/golang/go/compare/go1.23.4...go1.23.5

Hello gophers,

We have just released Go versions 1.23.5 and 1.22.11, minor point releases.

These minor releases include 2 security fixes following the security policy:

- crypto/x509: usage of IPv6 zone IDs can bypass URI name constraints

A certificate with a URI which has a IPv6 address with a zone ID may
incorrectly satisfy a URI name constraint that applies to the certificate
chain.

Certificates containing URIs are not permitted in the web PKI, so this
only affects users of private PKIs which make use of URIs.

Thanks to Juho Forsén of Mattermost for reporting this issue.

This is CVE-2024-45341 and Go issue https://go.dev/issue/71156.

- net/http: sensitive headers incorrectly sent after cross-domain redirect

The HTTP client drops sensitive headers after following a cross-domain redirect.
For example, a request to a.com/ containing an Authorization header which is
redirected to b.com/ will not send that header to b.com.

In the event that the client received a subsequent same-domain redirect, however,
the sensitive headers would be restored. For example, a chain of redirects from
a.com/, to b.com/1, and finally to b.com/2 would incorrectly send the Authorization
header to b.com/2.

Thanks to Kyle Seely for reporting this issue.

This is CVE-2024-45336 and Go issue https://go.dev/issue/70530.

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

Sebastiaan van Stijn authored on 2025/01/20 23:46:12
Showing 12 changed files
... ...
@@ -21,7 +21,7 @@ on:
21 21
         default: "graphdriver"
22 22
 
23 23
 env:
24
-  GO_VERSION: "1.23.4"
24
+  GO_VERSION: "1.23.5"
25 25
   GOTESTLIST_VERSION: v0.3.1
26 26
   TESTSTAT_VERSION: v0.1.25
27 27
   ITG_CLI_MATRIX_SIZE: 6
... ...
@@ -28,7 +28,7 @@ on:
28 28
         default: false
29 29
 
30 30
 env:
31
-  GO_VERSION: "1.23.4"
31
+  GO_VERSION: "1.23.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
... ...
@@ -22,7 +22,7 @@ on:
22 22
   pull_request:
23 23
 
24 24
 env:
25
-  GO_VERSION: "1.23.4"
25
+  GO_VERSION: "1.23.5"
26 26
   TESTSTAT_VERSION: v0.1.25
27 27
   DESTDIR: ./build
28 28
   SETUP_BUILDX_VERSION: edge
... ...
@@ -22,7 +22,7 @@ on:
22 22
   pull_request:
23 23
 
24 24
 env:
25
-  GO_VERSION: "1.23.4"
25
+  GO_VERSION: "1.23.5"
26 26
   DESTDIR: ./build
27 27
   SETUP_BUILDX_VERSION: edge
28 28
   SETUP_BUILDKIT_IMAGE: moby/buildkit:latest
... ...
@@ -57,7 +57,7 @@ jobs:
57 57
       - name: Update Go
58 58
         uses: actions/setup-go@v5
59 59
         with:
60
-          go-version: "1.23.4"
60
+          go-version: "1.23.5"
61 61
       - name: Initialize CodeQL
62 62
         uses: github/codeql-action/init@v3
63 63
         with:
... ...
@@ -22,7 +22,7 @@ on:
22 22
   pull_request:
23 23
 
24 24
 env:
25
-  GO_VERSION: "1.23.4"
25
+  GO_VERSION: "1.23.5"
26 26
   GIT_PAGER: "cat"
27 27
   PAGER: "cat"
28 28
   SETUP_BUILDX_VERSION: edge
... ...
@@ -23,7 +23,7 @@ linters:
23 23
 run:
24 24
   # prevent golangci-lint from deducting the go version to lint for through go.mod,
25 25
   # which causes it to fallback to go1.17 semantics.
26
-  go: "1.23.4"
26
+  go: "1.23.5"
27 27
   concurrency: 2
28 28
   # Only supported with go modules enabled (build flag -mod=vendor only valid when using modules)
29 29
   # modules-download-mode: vendor
... ...
@@ -1,6 +1,6 @@
1 1
 # syntax=docker/dockerfile:1.7
2 2
 
3
-ARG GO_VERSION=1.23.4
3
+ARG GO_VERSION=1.23.5
4 4
 ARG BASE_DEBIAN_DISTRO="bookworm"
5 5
 ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}"
6 6
 ARG XX_VERSION=1.6.1
... ...
@@ -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.23.4
8
+ARG GO_VERSION=1.23.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.23.4
164
+ARG GO_VERSION=1.23.5
165 165
 ARG GOTESTSUM_VERSION=v1.8.2
166 166
 ARG GOWINRES_VERSION=v0.3.1
167 167
 ARG CONTAINERD_VERSION=v1.7.25
... ...
@@ -1,6 +1,6 @@
1 1
 # syntax=docker/dockerfile:1
2 2
 
3
-ARG GO_VERSION=1.23.4
3
+ARG GO_VERSION=1.23.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.23.4
3
+ARG GO_VERSION=1.23.5
4 4
 ARG GOVULNCHECK_VERSION=v1.1.3
5 5
 ARG FORMAT=text
6 6