Skip to content

fix(deps): cilium 1.19.5 and ebpf 0.22.0 for four GHSA advisories - #116

Open
braghettos wants to merge 1 commit into
kagent-dev:mainfrom
braghettos:deps/cilium-1.19.5-ebpf-0.22
Open

braghettos wants to merge 1 commit into
kagent-dev:mainfrom
braghettos:deps/cilium-1.19.5-ebpf-0.22

Conversation

@braghettos

Copy link
Copy Markdown
Contributor

Bumps two indirect Go dependencies to versions that fix published security advisories. Both modules come in through pkg/kubescape → kubescape/k8s-interface → armosec/utils-k8s-go → cilium/cilium/pkg/labels.

Advisories

Module Advisory Go vuln ID Severity Fixed in
github.com/cilium/cilium GHSA-w7c2-w76w-5hmj (CVE-2026-56742): namespaced HTTPRoutes can redirect traffic to other namespaces GO-2026-6596 medium 1.19.5
github.com/cilium/cilium GHSA-fm8w-2m5w-9j7r (CVE-2026-56743): NetworkPolicy ipBlock match may allow ingress from the local namespace GO-2026-6367 medium 1.19.5
github.com/cilium/cilium GHSA-q6h5-q3q6-f87x (CVE-2026-53935): CiliumLocalRedirectPolicy addressMatcher cross-namespace hijacking GO-2026-5914 medium 1.19.4
github.com/cilium/ebpf GHSA-xhgw-qwwf-pg32 (CVE-2026-10722): integer overflow via LoadCollectionSpecFromReader (BTF parsing) GO-2026-6238 low 0.22.0

Dependency diff

go get github.com/cilium/cilium@v1.19.5 github.com/cilium/ebpf@v0.22.0 && go mod tidy. No other module versions change; both lines stay // indirect.

-	github.com/cilium/cilium v1.19.3 // indirect
-	github.com/cilium/ebpf v0.20.1-0.20260218191617-ee67e7f43dd9 // indirect
+	github.com/cilium/cilium v1.19.5 // indirect
+	github.com/cilium/ebpf v0.22.0 // indirect

go.sum changes only the four matching hash lines (2 files, +6/−6).

Note: cilium v1.19.5's own go.mod still requires the ebpf pseudo-version v0.20.1-0.20260218191617-ee67e7f43dd9, so v0.22.0 is selected by MVS above what cilium pins. The build, vet, tests and lint below all pass with it.

Verification (Go 1.27.3, macOS arm64)

  • go build ./...: ok
  • go vet ./...: ok
  • go test -tags=test ./pkg/... ./internal/... ./cmd/...: all packages ok
  • make lint (golangci-lint v2.15.0): 0 issues
  • govulncheck -show verbose ./... (govulncheck v1.9.0, DB updated 2026-11-11), before → after:
    • Symbol results: 6 → 3. GO-2026-6596, GO-2026-6367, GO-2026-5914 (cilium) are gone. Remaining: GO-2026-6859 (stdlib net/http, fixed in go1.27.4) and GO-2026-4887 / GO-2026-4883 (docker/docker v28.5.2+incompatible, no fix available). This PR doesn't touch those.
    • Package results: 1 → 0. GO-2026-6238 (ebpf) is gone.
    • Module results: 4 → 4, unchanged (cel-go GO-2026-6094, docker/docker GO-2026-5746 / 5668 / 5617).

🤖 Generated with Claude Code

https://claude.ai/code/session_01TLFnUd6g7xhDXDvaho4rDW

Bump two indirect dependencies (pulled in through kubescape's
k8s-interface -> armosec/utils-k8s-go -> cilium/pkg/labels):

- github.com/cilium/cilium v1.19.3 -> v1.19.5
  GHSA-w7c2-w76w-5hmj (medium, fixed 1.19.5)
  GHSA-fm8w-2m5w-9j7r (medium, fixed 1.19.5)
  GHSA-q6h5-q3q6-f87x (medium, fixed 1.19.4)
- github.com/cilium/ebpf v0.20.1-0.20260218191617-ee67e7f43dd9 -> v0.22.0
  GHSA-xhgw-qwwf-pg32 (low, fixed 0.22.0)

No other module versions change after go mod tidy.

Signed-off-by: Diego Braga <diego.braga86@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TLFnUd6g7xhDXDvaho4rDW

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for this dependency-only security update.

No open issues 🎉

What changed in this PR

Updates two indirect dependencies used through pkg/kubescape to address four published security advisories, without changing application code.

Changes:

  • Upgrades github.com/cilium/cilium from v1.19.3 to v1.19.5.
  • Upgrades github.com/cilium/ebpf to v0.22.0, explicitly selecting it above Cilium’s required version.
  • Updates the corresponding checksums; no other module versions change.
File Description
go.sum Replaces module and go.mod checksums for both upgraded dependencies.
go.mod Updates Cilium and eBPF versions while retaining their indirect status.

Review effort: Balanced

@braghettos

Copy link
Copy Markdown
Contributor Author

@dimetron thanks for the review. The one failing go-e2e-tests job hit a proxy.golang.org INTERNAL_ERROR while fetching github.com/seccomp/libseccomp-golang@v0.10.0 (a module this PR doesn't touch) during the image build, before any test ran; the sibling e2e run on the same commit passed. Could you re-run that job?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants