You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
syft+grype do not detect a vulnerable version of dnsmasq on an OpenWRT device.
What you expected to happen:
One of the reason could be that syft builds the wrong CPE: a:dnsmasq:dnsmasq:2.86-17 instead of a:thekelleys:dnsmasq:2.86 (NVD search)
Steps to reproduce the issue:
Let's try to reproduce partialy on a alpine container:
Anything else we need to know?:
In this particular case of alpine, the identification is OK and the syft+grype tandem gives expected result thanks to the correct info in the database:
However on the tested Openwrt device and without any specific namespace there is no match with grype database though some entries are present with the right CPE:
I've done a little bit of research about this, and added a draft PR that updates the CPE to include the right vendor for apk and dpkg. HOWEVER, there's still another issue that prevents any vulnerabilities from showing up for the openwrt dnsmasq: this is identified as a Debian package, so Grype only uses Debian matchers. We will hopefully be able to identify these as not official Debian packages (see: #2657) which should fix the issue there. The change does work for the alpine docker image.
What happened:
syft+grype do not detect a vulnerable version of dnsmasq on an OpenWRT device.
What you expected to happen:
One of the reason could be that syft builds the wrong CPE:
a:dnsmasq:dnsmasq:2.86-17
instead ofa:thekelleys:dnsmasq:2.86
(NVD search)Steps to reproduce the issue:
Let's try to reproduce partialy on a alpine container:
The vendor part is not the expected one. Maybe that comes from the incomplete metadata:
Anything else we need to know?:
In this particular case of alpine, the identification is OK and the syft+grype tandem gives expected result thanks to the correct info in the database:
However on the tested Openwrt device and without any specific namespace there is no match with grype database though some entries are present with the right CPE:
["cpe:2.3:a:thekelleys:dnsmasq:2.86:*:*:*:*:*:*:*"]
["cpe:2.3:a:thekelleys:dnsmasq:2.86:*:*:*:*:*:*:*"]
["cpe:2.3:a:thekelleys:dnsmasq:2.86:*:*:*:*:*:*:*"]
["cpe:2.3:a:thekelleys:dnsmasq:2.86:*:*:*:*:*:*:*"]
["cpe:2.3:a:thekelleys:dnsmasq:2.86:*:*:*:*:*:*:*"]
["cpe:2.3:a:thekelleys:dnsmasq:2.86:*:*:*:*:*:*:*"]
["cpe:2.3:a:thekelleys:dnsmasq:2.86:*:*:*:*:*:*:*"]
["cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*"]
["cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*"]
The text was updated successfully, but these errors were encountered: