Replies: 1 comment
-
Hello @larsriehn Can you create a test image and push it to dockerhub (or another registry)? Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Our application contains protobuf 4.28.2 defined in build.gradle.kts:
"com.google.protobuf:protoc:4.28.2"
I verified that this is the version of the jar contained in the build.
The generated SBOM and the trivy vulnerability check show the version 4.28.0 for protobuf-kotlin (interestingly everything is correct for protobuf-java).
See the correct version of the jar: protobuf-kotlin-4.28.2.jar not matching all other versions.
{
"bom-ref": "pkg:maven/com.google.protobuf/[email protected]",
"type": "library",
"group": "com.google.protobuf",
"name": "protobuf-kotlin",
"version": "4.28.0",
"hashes": [
{
"alg": "SHA-1",
"content": "5c444c13182baa06a30975cf90e62ff9acd95da7"
}
],
"purl": "pkg:maven/com.google.protobuf/[email protected]",
"properties": [
{
"name": "aquasecurity:trivy:FilePath",
"value": "app/reclaim-0.0.1-SNAPSHOT.jar/BOOT-INF/lib/protobuf-kotlin-4.28.2.jar"
},
{
"name": "aquasecurity:trivy:LayerDiffID",
"value": "sha256:6067a1acffb5e84e336a6316bd490463f02c866108c1f93e56be72e322048766"
},
{
"name": "aquasecurity:trivy:LayerDigest",
"value": "sha256:026f3b27d2358d1b4c5592b6eac010a85e6b4af20ffe1cbe17e67b18713c72cb"
},
{
"name": "aquasecurity:trivy:PkgType",
"value": "jar"
}
]
},
I do have the same behaviour with protobuf-kotlin-3.25.5.jar where trivy shows CVEs for 3.25.0
Desired Behavior
The correct version 4.28.2 should used.
(Second case 3.25.5 should be used)
Actual Behavior
Version 4.28.0 is used.
(Second case 3.25.0 is used)
Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
JSON
Mode
Client/Server
Debug Output
Operating System
Gitlab Runner
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions