-
Notifications
You must be sig 8000 ned in to change notification settings - Fork 632
Various false positives starting with 0.91.1 #2618
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
Comments
A workaround I found was adding this to all components that don't have a PURL (otherwise grype ignores the PURL, which leads to false negatives): "properties": [
{
"name": "syft:package:type",
"value": "binary"
}
], edit: I implemented this workaround here now. |
I noticed that without any CPE it also matches now, vs it didn't before: {
"components": [
{
"name": "libidn2",
"type": "library",
"version": "1.0.0"
}
],
"serialNumber": "urn:uuid:58138ce5-3e98-4cbd-bb27-ea5dcbf48170",
"version": 1,
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.5"
} That might be wanted behavior, not sure. Just mentioning it for completeness. |
EDIT: sorry, I thought I was investigating a false negative. You are correct that this is a false positive. I'll figure out why we're matching on it now and weren't before. |
Thanks! I can confirm that things are back to how they were with 0.91.0 Not sure if that is still useful, but here are some more I found (the others turned out to have no CPE): {
"components": [
{
"cpe": "cpe:/a:mozilla:bleach:6.2.0",
"name": "bleach",
"type": "library",
"version": "6.2.0"
},
{
"cpe": "cpe:/a:gnuplot:gnuplot:6.0.2",
"name": "gnuplot",
"type": "library",
"version": "6.0.2"
},
{
"cpe": "cpe:/a:gnu:libidn2:2.3.8",
"name": "libidn2",
"type": "library",
"version": "2.3.8"
},
{
"cpe": "cpe:/a:opencv:opencv:4.11.0",
"name": "opencv",
"type": "library",
"version": "4.11.0"
},
{
"cpe": "cpe:/a:tencent:rapidjson:1.1.0",
"name": "rapidjson",
"type": "library",
"version": "1.1.0"
}
],
"serialNumber": "urn:uuid:58138ce5-3e98-4cbd-bb27-ea5dcbf48170",
"version": 1,
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.5"
} For some extra context: We are "misusing" grype to do vuln reporting for a distro, thus the handcrafted SBOMs: https://www.msys2.org/dev/vulnerabilities/ |
What happened:
It matches CVEs that are assigned to npm packages that happen to have the same name as system packages.
What you expected to happen:
It not doing that (I control the SBOM generation, so maybe I'm doing something wrong?)
How to reproduce it (as minimally and precisely as possible):
This is one example, I have 7 more libraries that are affected by the same issue.
With 0.91.1 (broken):
With 0.91.0 (working):
The text was updated successfully, but these errors were encountered: