Skip to content

Commit 2ca0308

Browse files
ausphamCopilot
authored andcommitted
fix: resolve April 2026 docker-ptf security vulnerabilities
- Upgrade Go toolchain 1.25.8 → 1.25.9 (fixes CVE-2026-32280 through CVE-2026-32289: stdlib crypto/tls, archive/tar, html/template, os) - Bump go.opentelemetry.io/otel/sdk v1.40.0 → v1.43.0 in gnmic (CVE-2026-39883: PATH hijacking via BSD kenv) - Add github.com/go-jose/go-jose/v4@v4.1.4 to gnmic, gnoic, grpcurl (CVE-2026-34986: DoS via crafted JSON Web Encryption) - Bump github.com/docker/docker to latest in gnmic (CVE-2026-34040: authorization bypass, CVE-2026-33997: privilege validation bypass during plugin installation) - Add aws-sdk-go-v2 eventstream/s3 latest to gnmic (GHSA-xmrv-pmrh-hhx2: DoS via panic in AWS SDK for Go v2) - Existing apt-get upgrade covers libpng16-16 fix (CVE-2026-33416: use-after-free, CVE-2026-33636: OOB read/write) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Ubuntu <austinpham@austinpham-dev-vm-2.d4y3nv5wwgfelhhopdxv1tqjld.dx.internal.cloudapp.net>
1 parent 339a245 commit 2ca0308

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

dockers/docker-ptf/Dockerfile.j2

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ RUN GO_ARCH=arm64 \
112112
{% else %}
113113
RUN GO_ARCH=amd64 \
114114
{% endif %}
115-
&& GO_VERSION=1.25.8 \
115+
&& GO_VERSION=1.25.9 \
116116
&& curl -L "https://go.dev/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz" -o /tmp/go.tar.gz \
117117
&& tar -C /usr/local -xzf /tmp/go.tar.gz \
118118
&& rm /tmp/go.tar.gz
@@ -125,12 +125,14 @@ RUN GRPCURL_VERSION=v1.9.3 \
125125
&& git clone --depth 1 --branch "${GRPCURL_VERSION}" https://github.com/fullstorydev/grpcurl.git /tmp/grpcurl \
126126
&& cd /tmp/grpcurl \
127127
&& go get google.golang.org/grpc@v1.79.3 \
128+
&& go get github.com/go-jose/go-jose/v4@v4.1.4 \
128129
&& go get golang.org/x/crypto@latest golang.org/x/net@latest golang.org/x/text@latest golang.org/x/sys@latest golang.org/x/oauth2@latest \
129130
&& go mod tidy \
130131
&& go build -o /usr/local/bin/grpcurl ./cmd/grpcurl \
131132
&& chmod +x /usr/local/bin/grpcurl \
132133
&& rm -rf /tmp/grpcurl
133134
# Security fixes: upgrade all vulnerable system packages (S360 scan remediation)
135+
# Covers CVE-2026-33416 and CVE-2026-33636 (libpng16-16) among others
134136
RUN apt-get update && apt-get upgrade -y \
135137
&& rm -rf /var/lib/apt/lists/*
136138

@@ -406,6 +408,7 @@ RUN git clone https://github.com/karimra/gnoic.git \
406408
&& git checkout 27bc5a6 \
407409
&& go get google.golang.org/grpc@v1.79.3 \
408410
&& go get github.com/go-viper/mapstructure/v2@v2.4.0 \
411+
&& go get github.com/go-jose/go-jose/v4@v4.1.4 \
409412
&& go get golang.org/x/crypto@latest golang.org/x/net@latest golang.org/x/text@latest golang.org/x/sys@latest golang.org/x/oauth2@latest \
410413
&& go mod tidy \
411414
&& go build -o /usr/local/bin/gnoic . \
@@ -420,8 +423,11 @@ RUN GNMIC_VERSION=v0.43.0 \
420423
&& go get github.com/cloudflare/circl@v1.6.3 \
421424
&& go get github.com/go-git/go-git/v5@latest \
422425
&& go get github.com/nats-io/nats-server/v2@latest \
423-
&& go get go.opentelemetry.io/otel/sdk@v1.40.0 \
426+
&& go get go.opentelemetry.io/otel/sdk@v1.43.0 \
424427
&& go get github.com/docker/docker@latest \
428+
&& go get github.com/go-jose/go-jose/v4@v4.1.4 \
429+
&& go get github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream@latest github.com/aws/aws-sdk-go-v2/service/s3@latest github.com/aws/aws-sdk-go-v2/feature/s3/manager@latest \
430+
&& go get gocloud.dev@latest \
425431
&& go get golang.org/x/crypto@latest golang.org/x/net@latest golang.org/x/text@latest golang.org/x/sys@latest golang.org/x/oauth2@latest \
426432
&& go mod tidy \
427433
&& go build -o /usr/local/bin/gnmic . \

0 commit comments

Comments
 (0)