From f6e57c24eb307c8c85e5ef35581218bab27ec102 Mon Sep 17 00:00:00 2001 From: Derek Hsu Date: Fri, 20 Nov 2026 09:33:23 +0800 Subject: [PATCH] fix(images): build yq with Go 1.27.4 in the tools images Trivy reports HIGH CVE-2026-97054 in the Go 1.27.3 standard library of the yq binary that the OpenClaw and Hermes tools images build from source. Go 1.27.4 fixes it. The Hermes tools.3 publish run stopped on this finding. Pin the yq build stage of both tools images to golang:1.27.4-trixie by digest. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Derek Hsu --- Dockerfile.tools | 2 +- agents/hermes-01x/Dockerfile.tools | 2 +- docs/modification/2026-10-31-openclaw-tools-image.md | 2 +- tools/openclaw-tools-image/artifacts.lock | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.tools b/Dockerfile.tools index 334955bed12..b5b20fc3f2a 100644 --- a/Dockerfile.tools +++ b/Dockerfile.tools @@ -38,7 +38,7 @@ ADD --checksum=sha256:1dc21c3dd6d948929e22e5cae49b9d0b3b30ff88fafd4493fd4460c625 # The yq 4.54.1 release binaries use Go 1.27.1 and golang.org/x/net 0.59.0, # which have HIGH vulnerabilities with available fixes. Build the same yq version with a # patched Go toolchain and x/net. Go verifies module hashes with sumdb. -FROM golang:1.27.3-trixie@sha256:c65ecfe613b539ac74c62a4c3b2c27e8f8a6076384c8f27e8a3c0f3be17cc385 AS yq-build +FROM golang:1.27.4-trixie@sha256:f18c3d73a184fb0582828510722e723b63a93f7188d11dd223d9be6f6880e65d AS yq-build ENV CGO_ENABLED=0 GOTOOLCHAIN=local GOFLAGS=-trimpath WORKDIR /src RUN set -eu; \ diff --git a/agents/hermes-01x/Dockerfile.tools b/agents/hermes-01x/Dockerfile.tools index 9e3278abe4c..1e90a2f1561 100644 --- a/agents/hermes-01x/Dockerfile.tools +++ b/agents/hermes-01x/Dockerfile.tools @@ -52,7 +52,7 @@ ADD --checksum=sha256:1dc21c3dd6d948929e22e5cae49b9d0b3b30ff88fafd4493fd4460c625 # The yq 4.54.1 release binaries use Go 1.27.1 and golang.org/x/net 0.59.0, # which have HIGH vulnerabilities with available fixes. Build the same yq version with a # patched Go toolchain and x/net. Go verifies module hashes with sumdb. -FROM golang:1.27.3-trixie@sha256:c65ecfe613b539ac74c62a4c3b2c27e8f8a6076384c8f27e8a3c0f3be17cc385 AS yq-build +FROM golang:1.27.4-trixie@sha256:f18c3d73a184fb0582828510722e723b63a93f7188d11dd223d9be6f6880e65d AS yq-build ENV CGO_ENABLED=0 GOTOOLCHAIN=local GOFLAGS=-trimpath WORKDIR /src RUN set -eu; \ diff --git a/docs/modification/2026-10-31-openclaw-tools-image.md b/docs/modification/2026-10-31-openclaw-tools-image.md index 0ff2029abc2..9a07278fb01 100644 --- a/docs/modification/2026-10-31-openclaw-tools-image.md +++ b/docs/modification/2026-10-31-openclaw-tools-image.md @@ -80,7 +80,7 @@ Debian 套件在 amd64 與 arm64 上的版本相同。 |------|------|------| | officecli | 1.0.160 | amd64、arm64 | | himalaya | 2.2.1 | amd64、arm64;官方 release 的靜態連結執行檔,與 brew 安裝的版本相同 | -| yq(Mike Farah) | 4.54.1 | amd64、arm64;以 Go 1.27.3 與 `golang.org/x/net` 0.62.0 從原始碼建置 | +| yq(Mike Farah) | 4.54.1 | amd64、arm64;以 Go 1.27.4 與 `golang.org/x/net` 0.62.0 從原始碼建置 | | p5.js(`p5.min.js`) | 1.7.0 | 不分架構 | | Text-CharWidth 原始碼 | 0.04 | 建置階段重新編譯,見 6.3 節 | | pnpm | 12.16.1 | 不分架構 | diff --git a/tools/openclaw-tools-image/artifacts.lock b/tools/openclaw-tools-image/artifacts.lock index 7ebf9a28541..29108bfac67 100644 --- a/tools/openclaw-tools-image/artifacts.lock +++ b/tools/openclaw-tools-image/artifacts.lock @@ -12,5 +12,5 @@ chrome-headless-shell 156.0.8078.4 (Playwright 1248) arm64 https://cdn.playwrigh shadcn-components skills@ca45fc49 all https://raw.githubusercontent.com/anthropics/skills/ca45fc496a3436251f191354091d557da31c15b5/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz 1296f069e825de7933de7e8ac63672495cacce3f88f2dc45554dbcddbcbca60f # shadcn-components is unpacked into frontend-template/src (Apache-2.0, see # frontend-template/LICENSE.web-artifacts-builder.txt). -# yq 4.54.1 is built from source in Dockerfile.tools with Go 1.27.3 and +# yq 4.54.1 is built from source in Dockerfile.tools with Go 1.27.4 and # golang.org/x/net 0.62.0; Go verifies module hashes with sumdb.