[BUG] Daily image scan has failed since #3521: bundled `ant` CLI in sandbox-guest ships 15 fixed HIGH/CRITICAL CVEs

Aperta
#3,756 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attivitΓ 
Attiva
Stack tecnologico
docker, github-actions, go
Ambito
ci-cd, devops, security

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
  1. Open the latest Scan images run, e.g. https://github.com/kagent-dev/kagent/actions/runs/44873610018
  2. build (sandbox-guest, sandbox-guest) fails at "Image vulnerability scanner" with the table above.
  3. Optional: download ant_2.5.0_linux_amd64.tar.gz, verify it against ant_2.5.0_checksums.txt, and run govulncheck -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-action v0.36.0, severity: CRITICAL,HIGH, ignore-unfixed: true
πŸ”§ CLI Bug Report

No response

πŸ” Additional Context

Options I can see:

  1. Build ant from 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, after go get-ing the fixed versions of these modules. This fixes the image now, at the cost of no longer using the upstream release binary.
  2. Wait for an upstream ant release with updated dependencies. anthropics/anthropic-cli has issues disabled, so this needs someone with a contact there.
  3. 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:

govulncheck-ant-2.5.0.txt

πŸ™‹ 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

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu β€” evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kagent-dev/kagent

Tutte le issue di kagent-dev/kagent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.