Trivy does not identify certain imported pom files #5841
Closed
ishapirovArnica
started this conversation in
False Detection
Replies: 1 comment
-
Hello @ishapirovArnica Created #5899 for this issue. 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
-
IDs
CVE-2022-31159
Description
Trivy is not able to correctly identify the following imported pom file (Full files in the Reproduction Steps section):
This means it's not able to properly find the version for dependencies such as
org.springframework.cloud:spring-cloud-starter-aws
. Example:This results in CVE-2022-31159 not being found, a vulnerability on the transitive dependency of package
com.amazonaws:aws-java-sdk-s3:jar:1.11.415
Reproduction Steps
mvn dependency:tree
on this file. You should see both dependencies correctly found.Output:
Execute trivy fs --format cyclonedx --scanners vuln .
In the
dependencies
section find the ref for the project (pkg:maven/my.project/[email protected]
). Notice how only thepkg:maven/org.springframework.boot/[email protected]
is found. No mention ofspring-cloud-starter-aws
norcom.amazonaws:aws-java-sdk-s3
can be found in the results.Output snippet (full output in Debug Output section):
Target
Filesystem
Scanner
Vulnerability
Target OS
macOS Sonoma 14.0
Debug Output
Version
Checklist
-f json
that shows data sources and confirmed that the security advisory in data sources was correctBeta Was this translation helpful? Give feedback.
All reactions