anchore / grype

A vulnerability scanner for container images and filesystems
Apache License 2.0
8.86k stars 574 forks source link

False positive:GHSA-wf44-4mgj-rwvx( CVE-2015-3221) neutron 17.x.x, recommend fixed with 2014.x older versioning convention #2262

Open sekveaja opened 6 days ago

sekveaja commented 6 days ago

What happened: Scan on image that has python3-neutron-17.1.3.dev3-1000.R12A04.noarch installed. It generates vulnerabilities:

$ grype --distro sles:15.5 | grep neutron

neutron 17.1.3.dev3 17.1.3 python GHSA-hvm4-mc7m-22w4 High neutron 17.1.3.dev3 17.2.1 python GHSA-fh73-gjvg-349c High neutron 17.1.3.dev3 17.2.1 python GHSA-cpx3-696p-3cw9 High neutron 17.1.3.dev3 2014.2.4 python GHSA-wf44-4mgj-rwvx Medium <== neutron 17.1.3.dev3 18.6.0 python GHSA-w446-h7vg-wv3p Medium neutron 17.1.3.dev3 python GHSA-r3jh-qhgj-gvr8 Medium

What you expected to happen: OpenStack changed versioning system between Kilo and Liberty in 2015. Up to Kilo they used the year as a base resulting in 20xx.x.x versions. From Liberty they started to use semantic versioning in every project. This resulted lower version numbers for the newer projects that the tools cannot handle now. e.g. Neutron became 7.0.0 in Liberty after the 2015.1.4 Kilo version

https://releases.openstack.org/liberty/index.html https://releases.openstack.org/kilo/index.html

How to reproduce it (as minimally and precisely as possible): -->

  1. Download the tar file from the pubic repo https://tarballs.opendev.org/openstack/ artifact we can try scanning $ wget https://tarballs.opendev.org/openstack/neutron/neutron-17.3.0.tar.gz

  2. Scan the the tar file $ grype neutron-17.3.0.tar.gz ✔ Indexed file system /tmp/syft-archive-contents-3540691396 ✔ Cataloged contents 4511349c568d80f9839f9422ec75a7e660e974cbc52f892ea7b095dba294e3f8 ├── ✔ Packages [5 packages] ├── ✔ File digests [3 files] ├── ✔ File metadata [3 locations] └── ✔ Executables [0 executables] ✔ Scanned for vulnerabilities [3 vulnerability matches] ├── by severity: 0 critical, 0 high, 3 medium, 0 low, 0 negligible └── by status: 2 fixed, 1 not-fixed, 0 ignored NAME INSTALLED FIXED-IN TYPE VULNERABILITY SEVERITY neutron 17.3.0 2014.2.4 python GHSA-wf44-4mgj-rwvx Medium (FP reproduced) neutron 17.3.0 18.6.0 python GHSA-w446-h7vg-wv3p Medium neutron 17.3.0 python GHSA-r3jh-qhgj-gvr8 Medium

Environment: