csi: fix Trivy security scan failures#334
Open
boddumanohar wants to merge 1 commit into
Open
Conversation
…026-56852) Bump golang.org/x/text to v0.39.0 to fix CVE-2026-56852 (infinite loop on invalid input). Remove vim-minimal from the CSI base image, which carried several HIGH-severity vim CVEs (CVE-2026-52858, CVE-2026-47167, CVE-2026-47162, CVE-2026-46483) and isn't needed at runtime. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the failing
CSI: Security Scanjob (run: https://github.com/simplyblock/simplyblock-operator/actions/runs/29423907459/job/87381207613).Trivy's SARIF scan of
simplyblock/spdkcsi:scanreported:CVE-2026-56852 (
golang.org/x/textv0.38.0, indirect dep ofcsi-driver) — infinite loop on invalid input.CVE-2026-52858 / CVE-2026-47167 / CVE-2026-47162 / CVE-2026-46483 (HIGH,
vim-minimal) — arbitrary code execution / command injection vulnerabilities in the vim package shipped in the base image (Dockerfile_base), unused at runtime.Bump
golang.org/x/textto v0.39.0 incsi-driver/go.mod/go.sum(go get golang.org/x/text@v0.39.0 && go mod tidy, transitively bumpedx/mod/x/tools).Remove
vim-minimalfrom the CSI base image alongside the existingpython3-urllib3/python3-requests/python3-idnaremovals — it isn't needed by the CSI driver at runtime.Note: the
vim-minimalfix only takes effect oncesimplyblock/spdkcsi:base_image_e2fsprogsis rebuilt — either via the weeklyCSI: Docker Base Imagecron (Sundays 05:00 UTC) or by manually dispatching that workflow after this merges.Test plan
go build ./...incsi-driversucceedsgo vet ./...cleango mod verifypassesCSI: Security Scanjob passes on this branchCSI: Docker Base Imageafter merge to pick up thevim-minimalremoval🤖 Generated with Claude Code