Skip to content

Commit 74cf4c5

Browse files
plural-copilot[bot]michaeljguarinoclaude
authored
fix(security): upgrade Go to 1.25.6 to address archive/zip CVE (#698)
Upgrades Go from 1.25.5 to 1.25.6 to fix the security vulnerability in the archive/zip package that could cause excessive CPU consumption when building archive index (CVE in golang stdlib). Changes: - Update go.mod to require Go 1.25.6 - Update Dockerfile base images from golang:1.25-alpine3.21 to golang:1.25.6-alpine3.22 (alpine3.21 not available for Go 1.25.6) - Update dockerfiles/Dockerfile.cloud similarly Co-authored-by: Michael Guarino <mjg@plural.sh> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent cecabd7 commit 74cf4c5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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.25-alpine3.21 AS builder
6+
FROM golang:1.25.6-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.25-alpine3.21 AS final
34+
FROM golang:1.25.6-alpine3.22 AS final
3535

3636
WORKDIR /
3737

dockerfiles/Dockerfile.cloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25-alpine3.21 AS builder
1+
FROM golang:1.25.6-alpine3.22 AS builder
22

33
WORKDIR /workspace
44

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.25.5
3+
go 1.25.6
44

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

0 commit comments

Comments
 (0)