Wrong version detected for protobuf-kotlin #7967
-
DescriptionOur application contains protobuf 4.28.2 defined in build.gradle.kts: I do have the same behaviour with protobuf-kotlin-3.25.5.jar where trivy shows CVEs for 3.25.0 Desired BehaviorThe correct version 4.28.2 should used. Actual BehaviorVersion 4.28.0 is used. Reproduction Steps1. Build Kotlin application as a Docker image
2. Scan image with Trivy
3. Create CycloneDX SBOM with Trivy TargetContainer Image ScannerVulnerability Output FormatJSON ModeClient/Server Debug Output$ trivy image ${TRIVY_LOG_OUTPUT} ${TRIVY_EXTRA_FLAGS} --format cyclonedx --scanners vuln --input "${CI_PROJECT_DIR}/${CI_COMMIT_SHORT_SHA}-${IMAGE}.tar" --output ${TRIVY_REPORT_FILE} --server ${TRIVY_SERVER_URL}
Total: 0 (HIGH: 0)
Java (jar)
==========
Total: 1 (HIGH: 1)
┌─────────────────────────────────────┬───────────────┬──────────┬────────┬───────────────────┬────────────────────────┬───────────────────────────────────────────────────────────┐
│ Library │ Vulnerability │ Severity │ Status │ Installed Version │ Fixed Version │ Title │
├─────────────────────────────────────┼───────────────┼──────────┼────────┼───────────────────┼────────────────────────┼───────────────────────────────────────────────────────────┤
│ com.google.protobuf:protobuf-kotlin │ CVE-2024-7254 │ HIGH │ fixed │ 4.28.0 │ 3.25.5, 4.27.5, 4.28.2 │ protobuf: StackOverflow vulnerability in Protocol Buffers │
│ (reclaim-0.0.1-SNAPSHOT.jar) │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2024-7254 │
└─────────────────────────────────────┴───────────────┴──────────┴────────┴───────────────────┴────────────────────────┴───────────────────────────────────────────────────────────┘ Operating SystemGitlab Runner Version0.56.1 Checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
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.
-
duplicate of #7567 |
Beta Was this translation helpful? Give feedback.
Hello @larsriehn
Thanks!
v4.28.0 and v4.28.2 have same sha1:
More about this problem you can read in #7567.
Regards, Dmitriy