Some fixed-by version data is incorrect and needs to be investigated
While @pombredanne and I were reviewing the VCIO UI, it became clear that some of the data displayed in the Fixed by packages tab of the Vulnerability details page -- and thus the data in the DB -- is incorrect. The example was a query for VCID-2nyb-8rwu-aaag. The last 2 entries in the resulting Fixed by packages tab are
pkg:maven/com.fasterxml.jackson.core/[email protected]
pkg:maven/com.fasterxml.jackson.core/[email protected]
It seems counterintuitive that both of these versions would have been fixed rather than just one of them, and indeed an examination of the NVD Change History section for the CVE (https://nvd.nist.gov/vuln/detail/CVE-2020-36518#VulnChangeHistorySection) reflects that the vulnerability was fixed in 2.13.2.1 but not in 2.13.2.
See also this related data-quality issue I opened recently: Some UI package queries return duplicate copies of the same Package URL.
It still may be useful to consider converting CPE values to PURLs. Needs some analysis to specify how that can be done in a consistent manner acceptable to the community.
We need to:
- Map CPEs to PURLs (when not too complex).
- Parse CPE version ranges to vers.
- Handle updates to the CPE configuration in a CVE.
a useful reference here (thanks @keshav-space ):
https://github.com/scanoss/purl2cpe