-
Notifications
You must be signed in to change notification settings - Fork 193
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
Update Ubuntu package matching behavior #2963
Comments
@another-rex what you are referring to Ubuntu:22.04 is actually Ubuntu:22.04:LTS, we have no data that would have only Ubuntu:22.04, so I don't understand the difference you are seeing. The :Pro variant is indeed an extra, as it is packages that don't go to the normal archive. |
Thanks for the quick reply! It seems I misunderstood how Ubuntu releases work. I was assuming that a release starts off not marked as LTS and then becomes LTS, but it looks like LTS releases are started as LTS releases from the beginning, so this makes sense now. For the :Pro variants, if we found a package matching the version specified on a advisory (e.g. |
@another-rex sorry for the late reply, I was out the previous days. Pro is a bit trickier, therefore I will try to list every case below:
Nevertheless, to answer your question, the package is the same in LTS or Pro, the only change is the version and the patches that were applied to it. Therefore on a Ubuntu:18.04 you can assume that the advisory applies to that package. Let me know if it makes sense or if you have any other doubts. |
Related issue #2963 OSV-Scanner mismatches Ubuntu vulnerabilities due to variations in ecosystem naming (e.g., :LTS, :Pro). Adds a function to expand the Ubuntu ecosystem list with all possible variants, ensuring accurate vulnerability matching. TODO: - [ ] reput all Ubuntu vulnerabilities - [ ] support naming variations in API query
OSV-Scanner currently can only reliably get Ubuntu ecosystems with their release number (e.g. Ubuntu:22.04), but cannot get whether it is of the :LTS or :Pro variant without some vague string parsing.
Is there a difference in packages between Ubuntu:22.04 and Ubuntu:22.04:LTS at the same version number? E.g. is
socat
at version1.7.4.1-3ubuntu1
the same between Ubuntu:22.04 and the LTS?If they are the same, for our API, it should be fine to strip :LTS when matching, so a query with ecosystem of Ubuntu:22.04 and Ubuntu:22.04:LTS will return the same results.
Also does a similar thing apply the :Pro variant as well.
@dodys might you be able to provide some answers here? :)
The text was updated successfully, but these errors were encountered: