Replies: 1 comment
-
Thanks. Created #5390 |
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
go-rpmdb prior to last week was improperly removing all trailing 0 bytes from MD5 hashes. So
c1e561f13d39aee443a1f00258fba000
becamec1e561f13d39aee443a1f00258fba0
. trivy should update the dependency so that MD5 hashes are correct.I ran into this issue while trying to validate a CycloneDX bom generated by trivy. The Cyclone DX Spec requires that hashes be 32, 40, 64, 96 or 128 hexadecimal characters. But, since some MD5 hashes were truncated, the MD5 hashes were sometimes only 30 or 31 hexadecimal characters.
Desired Behavior
I expected the CycloneDX bom generated by Trivy to pass schema validation.
Actual Behavior
The CycloneDX bom generated by Trivy failed schema validation.
Reproduction Steps
Target
Container Image
Scanner
None
Output Format
CycloneDX
Mode
Standalone
Debug Output
Operating System
Rocky 8
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions