Replies: 1 comment 2 replies
-
|
Hello @mbrancato This is documented here: https://trivy.dev/latest/docs/coverage/language/golang/#go-binary Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
IDs
CVE-2025-47907
Description
I'm using
CVE-2025-47907as an example here, but this seems to be a much bigger problem with Trivy in how it scans Go binaries.Trivy will incorrectly report that a binary is vulnerable to a CVE in the Go stdlib, even when that stblib package is not used in the binary and is not even present in the compiled binary.
See reproduction steps.
These results are incorrect:
Reproduction Steps
file `go.mod`: module test-go-trivy go 1.24.5file
main.go:go mod tidyKO_DOCKER_REPO=ko.local ko build .trivy image --scanners vuln --detection-priority comprehensive ko.local/test-go-trivy-bd0381358c4cdde322c9e0b2891373bd:9b8476697dc77f3536f39c80dc053b78970fe666a85665ca87c47be5913beeb5Target
Container Image
Scanner
Vulnerability
Target OS
Wolfi / distroless
Debug Output
Version
Checklist
-f jsonthat shows data sources and confirmed that the security advisory in data sources was correctBeta Was this translation helpful? Give feedback.
All reactions