[BUG] Daily image scan has failed since #3521: bundled `ant` CLI in sandbox-guest ships 15 fixed HIGH/CRITICAL CVEs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
调研方向
Start in go/sandbox/guest/Dockerfile, where the ANT_VERSION ARG builds the download URL for /usr/local/bin/ant, and read the failing job in .github/workflows/image-scan.yaml plus the existing istio exception in .github/image-scan.rego. Reproduce locally with govulncheck -mode=binary ./ant on the pinned release, then pick one of the three paths the reporter lists — the issue leaves that decision open, so confirm the approach on the thread before writing code. Done means build (sandbox-guest) passes the Trivy step without masking other images' findings.
由索引模型根据 Issue 内容生成。
描述
📋 Prerequisites
- I have searched the existing issues to avoid creating a duplicate
- By submitting this issue, you agree to follow our Code of Conduct
- I am using the latest version of the software
- I have tried to clear cache/cookies or used incognito mode (if ui-related)
- I can consistently reproduce this issue
🎯 Affected Service(s)
Controller Service
🚦 Impact/Severity
Minor inconvenience
🐛 Bug Description
The Scan images workflow (image-scan.yaml) has failed every day since 2026-11-08, the day after #3521 added the sandbox-guest image. Every other image passes; only build (sandbox-guest) fails.
All findings come from one binary, /usr/local/bin/ant. The Dockerfile downloads it from the anthropics/anthropic-cli releases (ANT_VERSION=2.5.0 in go/sandbox/guest/Dockerfile), and the controller runs it as the worker process (ant beta:worker run, anthropicselfhostedsandboxes/launcher.go). The Alpine layer is clean since #3664.
Trivy on sandbox-guest:v0.0.0-dedcef2 reports Total: 15 (HIGH: 14, CRITICAL: 1) in usr/local/bin/ant (gobinary), all with fixes available:
Module in ant |
Version | Fixed in | CVEs |
|---|---|---|---|
google.golang.org/grpc |
v1.78.0 | 1.79.3 – 1.83.2 | CVE-2026-33186 (CRITICAL), CVE-2026-84304, CVE-2026-84445, GHSA-hrxh-6v49-42gf |
golang.org/x/net |
v0.49.0 | 0.53.0 – 0.62.0 | CVE-2026-25681, CVE-2026-27136, CVE-2026-33814, CVE-2026-39821, CVE-2026-46600, CVE-2026-78661, CVE-2026-78669 |
golang.org/x/text |
v0.33.0 | 0.41.0 | CVE-2026-56851, CVE-2026-56852 |
go.opentelemetry.io/otel, otel/sdk |
v1.40.0 | 1.41.0 / 1.43.0 | CVE-2026-29181, CVE-2026-39883 |
govulncheck -mode=binary on the official ant_2.5.0_linux_amd64 release (checksum verified) reports 27 vulnerabilities from 7 modules and the Go standard library (the binary is built with Go 1.26.10; net/http fixes are in 1.26.11). Binary mode reports vulnerable symbols that are present in the binary, so not all of these are necessarily reachable.
Bumping ANT_VERSION doesn't help: the latest release, v2.12.1, has the same go.mod versions for all of these modules and the same Go version. Dependabot also can't update this pin, because it's a download URL built from an ARG.
🔄 Steps To Reproduce
- Open the latest
Scan imagesrun, e.g. https://github.com/kagent-dev/kagent/actions/runs/44873610018 build (sandbox-guest, sandbox-guest)fails at "Image vulnerability scanner" with the table above.- Optional: download
ant_2.5.0_linux_amd64.tar.gz, verify it againstant_2.5.0_checksums.txt, and rungovulncheck -mode=binary ./ant.
🤔 Expected Behavior
The sandbox-guest image doesn't ship fixed HIGH/CRITICAL vulnerabilities, and the daily scan is green, so new findings in other images aren't hidden behind a permanently red run.
📱 Actual Behavior
14 consecutive failed daily runs (2026-11-08 → 2026-11-21). New CVEs in any image would only show up as one more red run.
💻 Environment
- kagent main @ dedcef2 (2026-11-20)
ANT_VERSION=2.5.0; latest anthropic-cli release v2.12.1 (same dependency versions)- Trivy via
aquasecurity/trivy-actionv0.36.0,severity: CRITICAL,HIGH,ignore-unfixed: true
🔧 CLI Bug Report
No response
🔍 Additional Context
Options I can see:
- Build
antfrom source in the Dockerfile at the pinned tag (./cmd/ant,CGO_ENABLED=0, same ldflags as upstream's goreleaser config), on the repo's Go image, aftergo get-ing the fixed versions of these modules. This fixes the image now, at the cost of no longer using the upstream release binary. - Wait for an upstream
antrelease with updated dependencies.anthropics/anthropic-clihas issues disabled, so this needs someone with a contact there. - Add version-scoped Trivy exceptions in
.github/image-scan.rego(like the existing istio one) while waiting for 2. This keeps the scan useful for other images, but doesn't fix the image.
Which would you prefer? I'm happy to send a PR for 1 or 3.
Searched existing issues and PRs for "image scan", "sandbox-guest", "ant CVE", "trivy sandbox": nothing matching. #3664 fixed the Alpine packages in this image, but not the ant binary.
📋 Logs
Trivy report summary from https://github.com/kagent-dev/kagent/actions/runs/44873610018 (job `build (sandbox-guest, sandbox-guest)`):
┌───────────────────────────────────────────────────────────────────────────────┬──────────┬─────────────────┬─────────┐
│ Target │ Type │ Vulnerabilities │ Secrets │
├───────────────────────────────────────────────────────────────────────────────┼──────────┼─────────────────┼─────────┤
│ localhost:5001/kagent-dev/kagent/sandbox-guest:v0.0.0-dedcef2 (alpine 3.24.4) │ alpine │ 0 │ - │
├───────────────────────────────────────────────────────────────────────────────┼──────────┼─────────────────┼─────────┤
│ usr/local/bin/ant │ gobinary │ 15 │ - │
├───────────────────────────────────────────────────────────────────────────────┼──────────┼─────────────────┼─────────┤
│ usr/local/bin/kagent-sandbox-guest │ gobinary │ 0 │ - │
└───────────────────────────────────────────────────────────────────────────────┴──────────┴─────────────────┴─────────┘
usr/local/bin/ant (gobinary)
Total: 15 (HIGH: 14, CRITICAL: 1)
##[error]Process completed with exit code 1.
📷 Screenshots
The scan results:
🙋 Are you willing to contribute?
- I am willing to submit a PR to fix this issue
- 主要语言
- Go
- 星标
- 4.5k
- 派生
- 937
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 150
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kagent-dev/kagent 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
kagent-dev/kagent#3792 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
kagent-dev/kagent#3790 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
kagent-dev/kagent#3789 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
kagent-dev/kagent#3787 ·
维护者通常 1 天内回复
-
[BUG] Python memory summarization fails for Gemini models: the request has no model name可能已有人在做 @BahaaMattar 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
kagent-dev/kagent#3710 ·
维护者通常 1 天内回复
查看 kagent-dev/kagent 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 1/5 1 小时以内 新手友好度 82/100
-
Add CybeDefend未关闭
难度 1/5 1 小时以内 新手友好度 66/100
slavakurilyak/awesome-ai-agents#1031 ·