Is this a BUG REPORT or a FEATURE REQUEST? (choose one): BUG REPORT
Version of Anchore Engine and Anchore CLI if applicable:
anchore-cli, version 0.4.1
What happened:
Detecting Java package dependency versions appears to be very inconsistent - while testing against images in the vulnhub/vulnhub repo, some JAR dependencies have undetected versions while others do, seemingly inconsistently:
Note how jenkins-core has no version - at first I thought nested archives were not handled, except was incorrect as thymeleaf is nested within the spring JAR and does get a version.
Note how jce from the jdk library has no version in its PATH but still gets its version detected, while others like charsets do not. Similarly, attoparser-2.0.4.RELEASE has its version detected but spring-boot-2.0.0.RELEASE does not.
Manually extracting these JARs shows they do have a manifest with version information attached.
What did you expect to happen:
All JAR version were detected correctly, demonstrating known vulnerabilities (in this case, for Jenkins or Spring)
Any relevant log output from /var/log/anchore:
Nothing that seems out of the ordinary:
Is this a request for help?: No
Is this a BUG REPORT or a FEATURE REQUEST? (choose one): BUG REPORT
Version of Anchore Engine and Anchore CLI if applicable: anchore-cli, version 0.4.1
What happened: Detecting Java package dependency versions appears to be very inconsistent - while testing against images in the vulnhub/vulnhub repo, some JAR dependencies have undetected versions while others do, seemingly inconsistently:
Note how
jenkins-core
has no version - at first I thought nested archives were not handled, except was incorrect asthymeleaf
is nested within the spring JAR and does get a version.Another image:
Note how
jce
from the jdk library has no version in its PATH but still gets its version detected, while others likecharsets
do not. Similarly,attoparser-2.0.4.RELEASE
has its version detected butspring-boot-2.0.0.RELEASE
does not.Manually extracting these JARs shows they do have a manifest with version information attached.
What did you expect to happen: All JAR version were detected correctly, demonstrating known vulnerabilities (in this case, for Jenkins or Spring)
Any relevant log output from /var/log/anchore: Nothing that seems out of the ordinary:
What docker images are you using:
How to reproduce the issue: