-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve handling of multiple vendors in package parsers #2798
Comments
For anyone wanting to work on this, the issue in the Java parser is raised by this line: cve-bin-tool/cve_bin_tool/parsers/java.py Line 30 in 6e139d3
Indeed, if there is multiple pairs in To fix this issue in the Python parser, I removed the cve-bin-tool/cve_bin_tool/parsers/java.py Line 73 in 6e139d3
but this is basically a noop as find_vendor will always returns a single element.
I'm not sure that the other parsers are affected. |
I'll try it out |
@terriko @metabiswadeep I think all of the language parsers will have this issue and so will the sbom manager (#2685 and #1504 are relevent). I think we need to develop a generic get_vendor routine (probably within a separate class? which returns the set of candidate vendors for a product. If we refactor cve-bin-tool to have a single routine throughout we can then incrementally enhance it with more heuristic vendor matching e.g. we may need to also give the function a hint if we know that we are looking for a Python module which may then reduce the potential vendors which are returned. Products such as openssl exists in many different forms and we maybe able to reduce some false positive reporting |
I have a fix for the SBOM manager which I will provide with the SBOM generation task. |
Reopening this: we've fixed it for python and java, but no one's looked at the other parsers yet I don't think. |
Reopening this: we've fixed it for python and java, but no one's looked at the other parsers yet I don't think. |
I'm pretty sure this was effectively solved as part of the PURL integration, so I'm going to close it now. |
In ##2796 @ffontaine has improved the python package parser to potentially match multiple vendors against a single product. I think we have a lot of other work to do in there with the metadata to handle better mapping than just searching a product name (see #2633 ) but for now I think just having the ability to find and use multiple vendors is an upgrade. @ffontaine mentioned that the Java parser in particular probably has the same problem as python did, it's likely that the others do as well.
This isn't quite a good first issue but it's likely a good second issue given that you can re-use the fix from #2796 (and maybe generalize?) for those of you who want something a bit bigger to work on.
The text was updated successfully, but these errors were encountered: