Missing vulnerabilities scanning SBOMs produced by the official SPDX Maven Plugin #6990
Closed
pablogalegoc
started this conversation in
Bugs
Replies: 1 comment
-
Hello @pablogalegoc Created #7007 for this task. 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
I've cloned the spring-petclinic and reset the repo to an old commit to ensure there are more packages with outdated versions. Then added the official SPDX Maven Plugin to the
pom.xml
file under<plugins>
, like it is shown in the Usage section of the documentation, setting the version to 0.7.3. Trivy is only capable of identifying one package fromorg.springframework.samples_spring-petclinic-3.1.0-SNAPSHOT.spdx.json, thus leading to a very short vulnerability report.
My guess is that the ID function returns strings that can't be matched in the vulnerability DB (for example,
PostgreSQL JDBC Driver:42.6.0
).Desired Behavior
If there is a purl available, use it as the primary identifier for a package in the vulnerability DB or as a fallback method.
Actual Behavior
I think it is using the ID function, as mentioned above.
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
macOS 14.5
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions