Remove vulnerable helper binaries from distroless image#640
Open
jsonmp-k8 wants to merge 1 commit intoNVIDIA:mainfrom
Open
Remove vulnerable helper binaries from distroless image#640jsonmp-k8 wants to merge 1 commit intoNVIDIA:mainfrom
jsonmp-k8 wants to merge 1 commit intoNVIDIA:mainfrom
Conversation
The NVIDIA distroless base image (nvcr.io/nvidia/distroless/cc:v4.0.1) ships shelless_ulimit and sleep helper binaries built with Go 1.25.5, which carry 1 CRITICAL and 3 HIGH CVEs: - CVE-2025-68121 (CRITICAL): crypto/tls session resumption - CVE-2025-61726 (HIGH): net/url memory exhaustion - CVE-2025-61728 (HIGH): archive/zip CPU exhaustion - CVE-2025-61730 (HIGH): TLS 1.3 handshake issue All are fixed in Go >= 1.25.7 but the base image has not been rebuilt. dcgm-exporter does not reference these binaries, so removing them eliminates the CVEs without any functional impact. Signed-off-by: Jaison Paul <paul.jaison@gmail.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
shelless_ulimit_*andsleep_*helper binaries from the distroless image that carry 1 CRITICAL + 3 HIGH CVEs due to being built with Go 1.25.5nvcr.io/nvidia/distroless/cc:v4.0.1) and are not referenced by dcgm-exporterProblem
Trivy scan of the current distroless image shows 4 fixable vulnerabilities in two helper binaries shipped by the base image:
All are fixed in Go >= 1.25.7, but the base image binaries were built with Go 1.25.5.
Fix
Since dcgm-exporter does not use
shelless_ulimit_*orsleep_*(confirmed via codebase grep), this PR removes them from the final distroless image by temporarily copyingrmfrom the helper stage and deleting them.Scan Results (Before → After)
Test Plan