Skip to content

Commit c522e25

Browse files
committed
Updates the Go toolchain, application dependencies, and OS-level packages
to resolve multiple security vulnerabilities identified in remediation Key changes: - Bumps Go builder stage to 1.24.13 to fix standard library and toolchain CVEs (e.g., CVE-2025-68121, CVE-2025-61732). - Switches to bullseye base image to ensure GLIBC compatibility between the builder and the Ollama runner stage. - Adds 'apt-get upgrade' to the runner stage to install the latest Ubuntu security patches for OpenSSL, libssh, and curl. - Updates google.golang.org/grpc to 1.79.3 (fixes CVE-2026-33186). - Updates golang.org/x/crypto to 0.45.0 (fixes CVE-2025-58181).
1 parent e119e3d commit c522e25

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

Demos/Gemma-on-Cloudrun/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# === Stage 1: Build proxy server ===
2-
FROM golang:1.24-alpine as proxy_builder
2+
FROM golang:1.24.13-alpine as proxy_builder
33
LABEL stage="proxy-builder"
44

55
# Create and change to the app directory.
@@ -21,7 +21,7 @@ FROM ollama/ollama:latest as ollama_builder
2121
LABEL stage="ollama-builder"
2222

2323
# Install curl. It's used in the start_script.sh to check Ollama health status.
24-
RUN apt-get update && apt-get install -y curl
24+
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl
2525

2626
# Copy the proxy server binary to the ollama image.
2727
COPY --from=proxy_builder /app/server /app/server

Demos/Gemma-on-Cloudrun/go.mod

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
module cloudrungemma
22

3-
go 1.24
3+
go 1.24.0
4+
5+
toolchain go1.24.13
46

57
require (
68
cloud.google.com/go/ai v0.10.2
79
github.com/openai/openai-go v0.1.0-beta.10
8-
google.golang.org/protobuf v1.36.6
10+
google.golang.org/protobuf v1.36.10
911
)
1012

1113
require (
@@ -14,10 +16,10 @@ require (
1416
github.com/tidwall/match v1.1.1 // indirect
1517
github.com/tidwall/pretty v1.2.1 // indirect
1618
github.com/tidwall/sjson v1.2.5 // indirect
17-
golang.org/x/net v0.39.0 // indirect
18-
golang.org/x/sys v0.32.0 // indirect
19-
golang.org/x/text v0.24.0 // indirect
20-
google.golang.org/genproto/googleapis/api v0.0.0-20250414145226-207652e42e2e // indirect
21-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250414145226-207652e42e2e // indirect
22-
google.golang.org/grpc v1.71.1 // indirect
19+
golang.org/x/net v0.47.0 // indirect
20+
golang.org/x/sys v0.39.0 // indirect
21+
golang.org/x/text v0.32.0 // indirect
22+
google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect
23+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
24+
google.golang.org/grpc v1.79.0-dev // indirect
2325
)

0 commit comments

Comments
 (0)