-
Notifications
You must be signed in to change notification settings - Fork 593
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
Summary counters are not accurate #1673
Comments
Hi @dwertent, thank you for the detailed report. We do have some circumstances where the summary count won't line up with the default table view output, specifically when there are duplicate rows in the table referring to the same vulnerability against the same package but installed in different places on your system. The JSON output should be correct relative to the the summary counts, but we agree that this is confusing. Here is a similar issue with our proposed fix: annotate de-duplicated rows in the table output with something like (2) to indicate that a vulnerability has a duplicate: #1327 We need to do some more investigation to make sure that our explanation is correct, we'll add this issue to our backlog to look at when we are able. Thanks again! |
I quick check looking at the JSON output too shows that there is a count issue still:
|
For this image at this time, here are all of the matches with a severity of medium (13)
Taking a look at the non-stdlib matches, when not using --by-cve you'll see:
But with --by-cve you'll see:
Note that the severities are different for the CVEs than the GHSA's for the same matches. This is mostly due to the way we are implementing However, there is still one more issue: we search for matches without looking for duplicate packages first:
This is a debug log snippet showing the back-to-back (duplicate) lookup. This hints at either:
|
What happened:
I sanned the following:
Here is the list of vulnerabilities:
As you can tell, there are 19 High and 8 Medium, not 18 high, and 11 medium as it says in the summary.
What you expected to happen:
The numbers should add up.
How to reproduce it (as minimally and precisely as possible):
Run the following:
Anything else we need to know?:
Full output:
And here are the results without the
--by-cve
flag:As you can tell, also here the summary does not add up.
Environment:
grype version
:cat /etc/os-release
or similar):macos M1
The text was updated successfully, but these errors were encountered: