Replies: 4 comments 2 replies
-
We use the |
Beta Was this translation helpful? Give feedback.
-
I think I figured it out. For go 1.23, buildinfo returns:
But for go 1.24 it returns:
Trivy doesn't consider The check version method here in the code returns the |
Beta Was this translation helpful? Give feedback.
-
https://go-review.googlesource.com/c/go/+/596035 |
Beta Was this translation helpful? Give feedback.
-
As a fix, I think it is safe to make versions like |
Beta Was this translation helpful? Give feedback.
-
Description
Hello, community! We scan Dex using trivy.
trivy image -v dexidp/dex:v2.41.0
The version v2.41.0 is built with go1.23 and trivy shows the correct version in the SBOM
trivy image -v dexidp/dex:v2.42.0
However, if we scan the version v2.42.0 which is built with go1.24, trivy shows the incorrect version
As a result of incorrect version parsing, trivy reports critical CVEs that were already fixed.
Could you guide me on what is wrong and how I can fix the problem?
Desired Behavior
The version is "github.com/dexidp/dex@v2.42.0"
Actual Behavior
The version is "github.com/dexidp/dex@v0.0.0-20250219130842-7d1a7473c8a0%2Bdirty"
Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
Table
Mode
Standalone
Debug Output
v2.42.0
v2.41.0
Operating System
Doesn't matter
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions