Skip to content

Commit 3be6d6b

Browse files
Upgrade Go to 1.26.2 to fix crypto/x509 CVE (#722)
This commit upgrades the Go version from 1.26.1 to 1.26.2 to address the crypto/x509 vulnerability (CVE affecting certificate chain validation). The vulnerability causes denial of service via inefficient certificate chain validation when certificates contain a very large number of policy mappings. Changes: - Updated go.mod: go directive from 1.26.1 to 1.26.2 - Updated Dockerfile: golang base images from 1.26.1-alpine3.22 to 1.26.2-alpine3.22 Testing: - go mod tidy: completed successfully with no dependency changes - go build: binary compiled successfully (117MB) - go test: all unit tests passed - docker build: image built successfully (749MB) and tested Fix Version: 1.26.2 Previous Version: 1.26.1 Package: stdlib Co-authored-by: Michael Guarino <mjg@plural.sh>
1 parent cb47ec5 commit 3be6d6b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ubuntu:22.10 AS user
33
# Create a nonroot user for final image
44
RUN useradd -u 10001 nonroot
55

6-
FROM golang:1.26.1-alpine3.22 AS builder
6+
FROM golang:1.26.2-alpine3.22 AS builder
77

88
WORKDIR /workspace
99

@@ -31,7 +31,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} \
3131
-X \"github.com/pluralsh/plural-cli/pkg/common.Date=${APP_DATE}\"" \
3232
-o plural ./cmd/plural
3333

34-
FROM golang:1.26.1-alpine3.22 AS final
34+
FROM golang:1.26.2-alpine3.22 AS final
3535

3636
WORKDIR /
3737

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/pluralsh/plural-cli
22

3-
go 1.26.1
3+
go 1.26.2
44

55
require (
66
cloud.google.com/go/compute v1.54.0

0 commit comments

Comments
 (0)