golang binary version parsing fails if GOEXPERIMENT was enabled #6695
Closed
lyoung-confluent
started this conversation in
Bugs
Replies: 1 comment 1 reply
-
Should be fixed via #6696 when merged |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When running trivy on a Golang binary that was compiled with GOEXPERIMENT such as
boringcrypto
orloopvar
the version extraction forstdlib
will fail:This is because the returned
GoVersion
includes the additional experiment tags as part of the "version".Desired Behavior
Trivy successfully extracts the Go version and reports the vulnerabilities
Actual Behavior
Trivy fails to extract the Go version and as such does not detect/report Go
stdlib
vulnerabilitiesReproduction Steps
Dockerfile
(docker build -t goexperiment-test .
):trivy
, observe that nostdlib
vulnerabilities are reported and an error is found in the output:Target
Container Image
Scanner
Vulnerability
Output Format
None
Mode
None
Debug Output
Operating System
macOS Sonoma
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions