-
Notifications
You must be signed in to change notification settings - Fork 370
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
Missing vulnerabilities for debian purls for --experimental-local-db #769
Comments
Good catch! It looks like our server side purl matching is case insensitive (seems to be correct according to the spec: https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst), but the local-db is not, which is a bug. @G-Rath This looks like another good starter issue for your team! |
@another-rex I think the issue is maybe a bit more complicated, and something I've be aware of for a while but not brought up since it didn't seem to be a high priority. The OSV spec says for the Alpine ecosystem:
My interpretation of that is the ecosystem string must always have a suffix, which seems to be the case for Assuming my current interpretation is correct if we use CVE-2022-48174 as an example, which is returned by the API when scanning
and when we scan our test SBOM, we get the following PURL for the
When we're preparing the osv "query" for comparison, we build package details which favors the Later when determining if the package is affected by the osv, we only check against the ecosystem regardless of if there's a PURL and so we end up comparing I think this resolves around the importance of the suffix, and that's something I think ideally should be mentioned in the spec too i.e. it is safe enough to just ignore the suffix if you can't be confident in determining it on both sides of the comparison? If the answer is yes, then that's what the scanner should do: whenever it compares a "suffixable" ecosystem, it should first compare the major ecosystem and (if that matches) it should compare the suffix if provided by both OSV and package If the answer is no, then that should be required in the PURL - it seems like it should doable (though I don't know if it would be considered robust or acceptable) via the |
Doesn't the Alpine ecosystem include all the vulnerabilities in versioned Alpine ecosystems like Alpine:v3.18? |
…ogle#1006) Remove feature from changelog as it's still blocked on google#769
I tried running --format json --sbom bom.json --experimental-local-db ~/database and it missed all the purls that has
pkg:deb/debian but I get hits for --format json --sbom bom.json
The text was updated successfully, but these errors were encountered: