cve-bin-tool
cve-bin-tool copied to clipboard
feat: improve handling when some CPEs have 0 CVEs associated?
For instance, in dumping the CVEData when there's no CVEs, I came across this occasion where there's two other instances of
dnsmasq
for vendorsdnsmasq
andthe_kelleys
. The instance ofdnsmasq
with vendor namethekelleys
(no underscore) actually has 13 CVEs with all the correct data.
=== ProductInfo(vendor='dnsmasq', product='dnsmasq', version='2.78') CVEData(None, {'cves': []})
=== ProductInfo(vendor='the_kelleys', product='dnsmasq', version='2.78') CVEData(None, {'cves': []})
Originally posted by @wideglide in https://github.com/intel/cve-bin-tool/issues/3899#issuecomment-1984902411
As I mentioned in the bug, we are working on a few things to avoid this kind of result, but while we're working on those slower improvements we may also want to do something fancy display-wise for cases where one or more of the CPEs (e.g. {vendor, product}) don't have any CVEs associated with them. Maybe just don't display them if they're not useful? Maybe put them in as a footnote? Not sure the best solution here but it seems like we could probably do better, anyhow.