[BUG] Daily image scan has failed since #3521: bundled `ant` CLI in sandbox-guest ships 15 fixed HIGH/CRITICAL CVEs
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- DifficoltΓ
- 3/5
- Tempo stimato
- 1-2 giorni
- IdoneitΓ per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
π 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
- Lingua principale
- Go
- Stelle
- 4.5k
- Fork
- 937
- Merge medio
- 1g 10h
- PR unite (30g)
- 150
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile nΓ© file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu β evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kagent-dev/kagent
-
DifficoltΓ 2/5 1-3 ore IdoneitΓ per principianti 82/100
kagent-dev/kagent#3792 Β·
I maintainer di solito rispondono entro 1 giorno
-
DifficoltΓ 2/5 1-3 ore IdoneitΓ per principianti 78/100
kagent-dev/kagent#3790 Β·
I maintainer di solito rispondono entro 1 giorno
-
DifficoltΓ 2/5 1-3 ore IdoneitΓ per principianti 80/100
kagent-dev/kagent#3789 Β·
I maintainer di solito rispondono entro 1 giorno
-
DifficoltΓ 2/5 1-3 ore IdoneitΓ per principianti 68/100
kagent-dev/kagent#3787 Β·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Python memory summarization fails for Gemini models: the request has no model nameForse giΓ presa @BahaaMattar lβha presa 6 giorni fa. Aperta
DifficoltΓ 2/5 1-3 ore IdoneitΓ per principianti 82/100
kagent-dev/kagent#3710 Β·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di kagent-dev/kagent
Issue simili
-
DifficoltΓ 2/5 1-3 ore IdoneitΓ per principianti 68/100
-
DifficoltΓ 2/5 1-3 ore IdoneitΓ per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
DifficoltΓ 2/5 1-3 ore IdoneitΓ per principianti 74/100
-
Screenshot missing in READMEAperta
DifficoltΓ 1/5 Meno di un'ora IdoneitΓ per principianti 82/100
omenking/meta-costcenter#2 Β·
-
Add CybeDefendAperta
DifficoltΓ 1/5 Meno di un'ora IdoneitΓ per principianti 66/100
slavakurilyak/awesome-ai-agents#1031 Β·