-
Notifications
You must be signed in to change notification settings - Fork 574
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
False positive for ruby gem webrick #1405
Comments
False positive upstream. |
Ah fab, thank you 👍 out of interest how long does it normally take (now that upstream PR was merged) for it to make its way into the grype vuln db? |
No idea, I'm using a different vulnerability scanner that uses the same DB and it seems to be fixed there. |
I did also contact NVD regarding https://nvd.nist.gov/vuln/detail/CVE-2008-1145 to try and get the CPE updated to something more like on https://nvd.nist.gov/vuln/detail/CVE-2009-4492, but that may take some time for them to process |
grype databases typically get updated and published once per day by the following workflows
We do currently have an issue with the automated publishing pipeline that we're working on, but we manually published an update yesterday so the GHSA record update should already be available |
Thanks GHSA-369m-2gv6-mw28 is no longer incorrectly flagged 👍 I guess we'll leave this open for https://nvd.nist.gov/vuln/detail/CVE-2008-1145 while that's still wrongly flagged
|
We can tell from the description that this is a FP, but the cpe we're generating compared with what is in NVD is correct NVD: In the above case One more final thought - we are moving away from CPE matching in the near future and this issue should be solved once we move to the PURL/GHSA model. |
What happened:
Grype is reporting a (very old) vulnerability in the
webrick
ruby gem despite running a version with the fix:GHSA-369m-2gv6-mw28 says the patched version is 1.4.0 so 1.7.0 should be fine.
However grype says it is 'Fixed in' 2.2.8 which doesn't make sense because there is no version 2.2.8 of the webrick gem https://github.com/ruby/webrick/releases / https://rubygems.org/gems/webrick
This seems like an FP, possibly because the CPEs on https://nvd.nist.gov/vuln/detail/CVE-2017-10784 seem to be referring to ruby versions (where 2.2.8 would be the first patched one AFAICS) which grype has then compared against the version of webrick itself.
What you expected to happen:
No vulnerability to be reported for Ruby Gem
webrick
at version 1.7.0How to reproduce it (as minimally and precisely as possible):
As above:
Anything else we need to know?:
Environment:
grype version
: 0.64.2cat /etc/os-release
or similar): Docker Desktop for WindowsThe text was updated successfully, but these errors were encountered: