anchore / grype

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

Multiple FPs for the npm analyzer #615

Closed StefanCenusa closed 1 year ago

StefanCenusa commented 2 years ago

What happened: This issue I've previously reported more than a year ago on https://github.com/anchore/anchore-engine/issues/606 when it wasn't using grype, but now I can reproduce it using grype as well.

I've been scanning images with grype and there have been some false positives for the npm packages.

What you expected to happen: Non-npm related CVEs to be ignored for npm packages.

How to reproduce it (as minimally and precisely as possible): I've built 2 images specially to reproduce this issue: https://hub.docker.com/repository/docker/stefancenusa/normal-pancake

The base tag is only a republish of node:12.18.3-slim. The 1.0.1 tags starts from the base tag and adds a few npm packages I've notice to trigger FPs.

➜ grype docker.io/stefancenusa/normal-pancake:base > base-vulns.txt
 ✔ Vulnerability DB        [updated]
 ✔ Parsed image
 ✔ Cataloged packages      [515 packages]
 ✔ Scanned image           [244 vulnerabilities]
NAME               INSTALLED              FIXED-IN           VULNERABILITY        SEVERITY   
ansi-regex         3.0.0                  5.0.1              GHSA-93q8-gq69-wqmw  Medium      
ansi-regex         3.0.0                                     CVE-2021-3807        High        
apt                1.4.10                                    CVE-2011-3374        Negligible  
apt                1.4.10                 1.4.11             CVE-2020-27350       Medium      
bash               4.4-5                                     CVE-2019-18276       Negligible  
bsdutils           1:2.29.2-1+deb9u1      (won't fix)        CVE-2016-2779        High        
bsdutils           1:2.29.2-1+deb9u1      (won't fix)        CVE-2021-37600       Low         
coreutils          8.26-3                 (won't fix)        CVE-2016-2781        Low         
coreutils          8.26-3                                    CVE-2017-18018       Negligible  
dot-prop           4.2.0                  4.2.1              GHSA-ff7x-qrg7-qggm  High        
dot-prop           4.2.0                                     CVE-2020-8116        High        
editor             1.0.0                                     CVE-2015-0903        High        
gcc-6-base         6.3.0-18+deb9u1        (won't fix)        CVE-2018-12886       High        
gpgv               2.1.18-8~deb9u4        (won't fix)        CVE-2018-1000858     High        
gpgv               2.1.18-8~deb9u4        (won't fix)        CVE-2019-14855       Low         
gpgv               2.1.18-8~deb9u4        (won't fix)        CVE-2018-9234        Low         
hosted-git-info    2.8.8                  2.8.9              GHSA-43f8-2h32-f4cj  Medium      
hosted-git-info    2.8.8                                     CVE-2021-23362       Medium      
ini                1.3.5                  1.3.6              GHSA-qqgx-2p2h-9c37  High        
ini                1.3.5                                     CVE-2020-7788        High        
json-schema        0.2.3                  0.4.0              GHSA-896r-f27r-55mw  Medium      
json-schema        0.2.3                                     CVE-2021-3918        Critical    
libapt-pkg5.0      1.4.10                                    CVE-2011-3374        Negligible  
libapt-pkg5.0      1.4.10                 1.4.11             CVE-2020-27350       Medium      
libblkid1          2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libblkid1          2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
libbz2-1.0         1.0.6-8.1              (won't fix)        CVE-2019-12900       Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-3998        Unknown     
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-3999        Unknown     
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2022-23218       Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2022-23219       Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2009-5155        High        
libc-bin           2.24-11+deb9u4                            CVE-2010-4756        Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2015-8985        Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2016-10228       Low         
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2016-10739       Medium      
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2017-12132       Medium      
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2018-1000001     High        
libc-bin           2.24-11+deb9u4                            CVE-2018-20796       Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2018-6485        Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2018-6551        Critical    
libc-bin           2.24-11+deb9u4                            CVE-2019-1010022     Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2019-1010023     Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2019-1010024     Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2019-1010025     Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2019-19126       Low         
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2019-25013       Medium      
libc-bin           2.24-11+deb9u4                            CVE-2019-6488        Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2019-7309        Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2019-9169        Critical    
libc-bin           2.24-11+deb9u4                            CVE-2019-9192        Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-10029       Medium      
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-1751        High        
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-1752        High        
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-27618       Medium      
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-6096        Low         
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-27645       Low         
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-3326        High        
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-33574       Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-35942       Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-3998        Unknown     
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-3999        Unknown     
libc6              2.24-11+deb9u4         (won't fix)        CVE-2022-23218       Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2022-23219       Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2009-5155        High        
libc6              2.24-11+deb9u4                            CVE-2010-4756        Negligible  
libc6              2.24-11+deb9u4                            CVE-2015-8985        Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2016-10228       Low         
libc6              2.24-11+deb9u4         (won't fix)        CVE-2016-10739       Medium      
libc6              2.24-11+deb9u4         (won't fix)        CVE-2017-12132       Medium      
libc6              2.24-11+deb9u4         (won't fix)        CVE-2018-1000001     High        
libc6              2.24-11+deb9u4                            CVE-2018-20796       Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2018-6485        Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2018-6551        Critical    
libc6              2.24-11+deb9u4                            CVE-2019-1010022     Negligible  
libc6              2.24-11+deb9u4                            CVE-2019-1010023     Negligible  
libc6              2.24-11+deb9u4                            CVE-2019-1010024     Negligible  
libc6              2.24-11+deb9u4                            CVE-2019-1010025     Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2019-19126       Low         
libc6              2.24-11+deb9u4         (won't fix)        CVE-2019-25013       Medium      
libc6              2.24-11+deb9u4                            CVE-2019-6488        Negligible  
libc6              2.24-11+deb9u4                            CVE-2019-7309        Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2019-9169        Critical    
libc6              2.24-11+deb9u4                            CVE-2019-9192        Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-10029       Medium      
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-1751        High        
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-1752        High        
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-27618       Medium      
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-6096        Low         
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-27645       Low         
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-3326        High        
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-33574       Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-35942       Critical    
libfdisk1          2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libfdisk1          2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
libgcc1            1:6.3.0-18+deb9u1      (won't fix)        CVE-2018-12886       High        
libgcrypt20        1.7.6-2+deb9u3         (won't fix)        CVE-2019-13627       Medium      
libgcrypt20        1.7.6-2+deb9u3         (won't fix)        CVE-2021-33560       High        
libgcrypt20        1.7.6-2+deb9u3         1.7.6-2+deb9u4     CVE-2021-40528       Medium      
libgcrypt20        1.7.6-2+deb9u3                            CVE-2018-6829        Negligible  
liblz4-1           0.0~r131-2+b1          (won't fix)        CVE-2019-17543       Low         
liblz4-1           0.0~r131-2+b1          0.0~r131-2+deb9u1  CVE-2021-3520        Critical    
libmount1          2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libmount1          2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
libncursesw5       6.0+20161126-1+deb9u2  (won't fix)        CVE-2018-19211       Low         
libncursesw5       6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17594       Low         
libncursesw5       6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17595       Low         
libncursesw5       6.0+20161126-1+deb9u2                     CVE-2021-39537       Negligible  
libpcre3           2:8.39-3                                  CVE-2017-11164       Negligible  
libpcre3           2:8.39-3                                  CVE-2017-16231       Negligible  
libpcre3           2:8.39-3                                  CVE-2017-7245        Negligible  
libpcre3           2:8.39-3                                  CVE-2017-7246        Negligible  
libpcre3           2:8.39-3                                  CVE-2019-20838       Negligible  
libpcre3           2:8.39-3               (won't fix)        CVE-2020-14155       Medium      
libsepol1          2.6-2                  (won't fix)        CVE-2021-36084       Low         
libsepol1          2.6-2                  (won't fix)        CVE-2021-36085       Low         
libsepol1          2.6-2                  (won't fix)        CVE-2021-36086       Low         
libsepol1          2.6-2                  (won't fix)        CVE-2021-36087       Low         
libsmartcols1      2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libsmartcols1      2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
libstdc++6         6.3.0-18+deb9u1        (won't fix)        CVE-2018-12886       High        
libsystemd0        232-25+deb9u12                            CVE-2013-4392        Negligible  
libsystemd0        232-25+deb9u12                            CVE-2017-1000082     Negligible  
libsystemd0        232-25+deb9u12                            CVE-2017-18078       Negligible  
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2018-16888       Low         
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2018-6954        Low         
libsystemd0        232-25+deb9u12                            CVE-2019-20386       Negligible  
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2019-3843        High        
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2019-3844        High        
libsystemd0        232-25+deb9u12                            CVE-2020-13529       Negligible  
libsystemd0        232-25+deb9u12                            CVE-2020-13776       Negligible  
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2020-1712        High        
libsystemd0        232-25+deb9u12         232-25+deb9u13     CVE-2021-33910       Medium      
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2021-3997        Unknown     
libtinfo5          6.0+20161126-1+deb9u2  (won't fix)        CVE-2018-19211       Low         
libtinfo5          6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17594       Low         
libtinfo5          6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17595       Low         
libtinfo5          6.0+20161126-1+deb9u2                     CVE-2021-39537       Negligible  
libudev1           232-25+deb9u12                            CVE-2013-4392        Negligible  
libudev1           232-25+deb9u12                            CVE-2017-1000082     Negligible  
libudev1           232-25+deb9u12                            CVE-2017-18078       Negligible  
libudev1           232-25+deb9u12         (won't fix)        CVE-2018-16888       Low         
libudev1           232-25+deb9u12         (won't fix)        CVE-2018-6954        Low         
libudev1           232-25+deb9u12                            CVE-2019-20386       Negligible  
libudev1           232-25+deb9u12         (won't fix)        CVE-2019-3843        High        
libudev1           232-25+deb9u12         (won't fix)        CVE-2019-3844        High        
libudev1           232-25+deb9u12                            CVE-2020-13529       Negligible  
libudev1           232-25+deb9u12                            CVE-2020-13776       Negligible  
libudev1           232-25+deb9u12         (won't fix)        CVE-2020-1712        High        
libudev1           232-25+deb9u12         232-25+deb9u13     CVE-2021-33910       Medium      
libudev1           232-25+deb9u12         (won't fix)        CVE-2021-3997        Unknown     
libuuid1           2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libuuid1           2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
login              1:4.4-4.1                                 CVE-2007-5686        Negligible  
login              1:4.4-4.1                                 CVE-2013-4235        Negligible  
login              1:4.4-4.1              1:4.4-4.1+deb9u1   CVE-2017-12424       Critical    
login              1:4.4-4.1              1:4.4-4.1+deb9u1   CVE-2017-20002       High        
login              1:4.4-4.1              (won't fix)        CVE-2018-7169        Low         
login              1:4.4-4.1                                 CVE-2019-19882       Negligible  
mount              2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
mount              2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-3998        Unknown     
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-3999        Unknown     
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2022-23218       Critical    
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2022-23219       Critical    
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2009-5155        High        
multiarch-support  2.24-11+deb9u4                            CVE-2010-4756        Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2015-8985        Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2016-10228       Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2016-10739       Medium      
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2017-12132       Medium      
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2018-1000001     High        
multiarch-support  2.24-11+deb9u4                            CVE-2018-20796       Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2018-6485        Critical    
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2018-6551        Critical    
multiarch-support  2.24-11+deb9u4                            CVE-2019-1010022     Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2019-1010023     Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2019-1010024     Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2019-1010025     Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2019-19126       Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2019-25013       Medium      
multiarch-support  2.24-11+deb9u4                            CVE-2019-6488        Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2019-7309        Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2019-9169        Critical    
multiarch-support  2.24-11+deb9u4                            CVE-2019-9192        Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-10029       Medium      
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-1751        High        
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-1752        High        
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-27618       Medium      
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-6096        Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-27645       Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-3326        High        
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-33574       Critical    
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-35942       Critical    
ncurses-base       6.0+20161126-1+deb9u2  (won't fix)        CVE-2018-19211       Low         
ncurses-base       6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17594       Low         
ncurses-base       6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17595       Low         
ncurses-base       6.0+20161126-1+deb9u2                     CVE-2021-39537       Negligible  
ncurses-bin        6.0+20161126-1+deb9u2  (won't fix)        CVE-2018-19211       Low         
ncurses-bin        6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17594       Low         
ncurses-bin        6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17595       Low         
ncurses-bin        6.0+20161126-1+deb9u2                     CVE-2021-39537       Negligible  
npm-user-validate  1.0.0                  1.0.1              GHSA-xgh6-85xh-479p  Low         
npm-user-validate  1.0.0                  1.0.1              GHSA-pw54-mh39-w3hc  High        
npm-user-validate  1.0.0                                     CVE-2020-7754        High        
passwd             1:4.4-4.1                                 CVE-2007-5686        Negligible  
passwd             1:4.4-4.1                                 CVE-2013-4235        Negligible  
passwd             1:4.4-4.1              1:4.4-4.1+deb9u1   CVE-2017-12424       Critical    
passwd             1:4.4-4.1              1:4.4-4.1+deb9u1   CVE-2017-20002       High        
passwd             1:4.4-4.1              (won't fix)        CVE-2018-7169        Low         
passwd             1:4.4-4.1                                 CVE-2019-19882       Negligible  
path-parse         1.0.6                  1.0.7              GHSA-hj48-42vr-x3v9  Medium      
path-parse         1.0.6                                     CVE-2021-23343       High        
perl-base          5.24.1-3+deb9u7                           CVE-2011-4116        Negligible  
perl-base          5.24.1-3+deb9u7        (won't fix)        CVE-2020-16156       High        
rc                 1.2.8                                     CVE-2014-1936        High        
rc                 1.2.8                                     CVE-2020-17753       Medium      
ssri               6.0.1                  6.0.2              GHSA-vx3p-948g-6vhq  High        
ssri               6.0.1                                     CVE-2021-27290       High        
tar                1.29b-1.1                                 CVE-2005-2541        Negligible  
tar                1.29b-1.1                                 CVE-2019-9923        Negligible  
tar                1.29b-1.1                                 CVE-2021-20193       Negligible  
tar                1.29b-1.1              1.29b-1.1+deb9u1   CVE-2018-20482       Medium      
tar                4.4.13                 4.4.15             GHSA-r628-mhmh-qjhw  High        
tar                4.4.13                 4.4.14             GHSA-3jfq-g458-7qm9  High        
tar                4.4.13                 4.4.18             GHSA-5955-9wpr-37jh  High        
tar                4.4.13                 4.4.18             GHSA-qq89-hq3f-393p  High        
tar                4.4.13                 4.4.16             GHSA-9r2w-394v-53qc  High        
tar                4.4.13                                    CVE-2021-32803       High        
tar                4.4.13                                    CVE-2021-32804       High        
tar                4.4.13                                    CVE-2021-37701       High        
tar                4.4.13                                    CVE-2021-37712       High        
tar                4.4.13                                    CVE-2021-37713       High        
through            2.3.8                                     CVE-2021-29940       Critical    
util-linux         2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
util-linux         2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
y18n               3.2.1                  3.2.2              GHSA-c4w7-xm78-47vh  High        
y18n               3.2.1                                     CVE-2020-7774        High        
y18n               4.0.0                  4.0.1              GHSA-c4w7-xm78-47vh  High        
y18n               4.0.0                                     CVE-2020-7774        High        
yargs-parser       9.0.2                  13.1.2             GHSA-p9pc-299p-vxgp  Medium      
yargs-parser       9.0.2                                     CVE-2020-7608        Medium      

All the vulnerabilities in the "base" image are ok since the image is old.

Now, the 1.0.1 tag after I've only installed a few npm modules:

➜ grype docker.io/stefancenusa/normal-pancake:1.0.1 > first-vulns.txt
 ✔ Vulnerability DB        [no update available]
 ✔ Parsed image
 ✔ Cataloged packages      [542 packages]
 ✔ Scanned image           [280 vulnerabilities]
NAME               INSTALLED              FIXED-IN           VULNERABILITY        SEVERITY   
ansi-regex         3.0.0                  5.0.1              GHSA-93q8-gq69-wqmw  Medium      
ansi-regex         3.0.0                                     CVE-2021-3807        High        
app                1.0.0                                     CVE-2018-13661       High        
apt                1.4.10                                    CVE-2011-3374        Negligible  
apt                1.4.10                 1.4.11             CVE-2020-27350       Medium      
bash               4.4-5                                     CVE-2019-18276       Negligible  
bsdutils           1:2.29.2-1+deb9u1      (won't fix)        CVE-2016-2779        High        
bsdutils           1:2.29.2-1+deb9u1      (won't fix)        CVE-2021-37600       Low         
bson               1.1.5                                     CVE-2015-4411        High        
cookie             0.4.0                                     CVE-2017-18589       High        
coreutils          8.26-3                 (won't fix)        CVE-2016-2781        Low         
coreutils          8.26-3                                    CVE-2017-18018       Negligible  
dot-prop           4.2.0                  4.2.1              GHSA-ff7x-qrg7-qggm  High        
dot-prop           4.2.0                                     CVE-2020-8116        High        
editor             1.0.0                                     CVE-2015-0903        High        
gcc-6-base         6.3.0-18+deb9u1        (won't fix)        CVE-2018-12886       High        
gpgv               2.1.18-8~deb9u4        (won't fix)        CVE-2018-1000858     High        
gpgv               2.1.18-8~deb9u4        (won't fix)        CVE-2019-14855       Low         
gpgv               2.1.18-8~deb9u4        (won't fix)        CVE-2018-9234        Low         
hosted-git-info    2.8.8                  2.8.9              GHSA-43f8-2h32-f4cj  Medium      
hosted-git-info    2.8.8                                     CVE-2021-23362       Medium      
ini                1.3.5                  1.3.6              GHSA-qqgx-2p2h-9c37  High        
ini                1.3.5                                     CVE-2020-7788        High        
json-schema        0.2.3                  0.4.0              GHSA-896r-f27r-55mw  Medium      
json-schema        0.2.3                                     CVE-2021-3918        Critical    
libapt-pkg5.0      1.4.10                                    CVE-2011-3374        Negligible  
libapt-pkg5.0      1.4.10                 1.4.11             CVE-2020-27350       Medium      
libblkid1          2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libblkid1          2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
libbz2-1.0         1.0.6-8.1              (won't fix)        CVE-2019-12900       Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-3998        Unknown     
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-3999        Unknown     
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2022-23218       Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2022-23219       Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2009-5155        High        
libc-bin           2.24-11+deb9u4                            CVE-2010-4756        Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2015-8985        Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2016-10228       Low         
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2016-10739       Medium      
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2017-12132       Medium      
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2018-1000001     High        
libc-bin           2.24-11+deb9u4                            CVE-2018-20796       Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2018-6485        Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2018-6551        Critical    
libc-bin           2.24-11+deb9u4                            CVE-2019-1010022     Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2019-1010023     Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2019-1010024     Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2019-1010025     Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2019-19126       Low         
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2019-25013       Medium      
libc-bin           2.24-11+deb9u4                            CVE-2019-6488        Negligible  
libc-bin           2.24-11+deb9u4                            CVE-2019-7309        Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2019-9169        Critical    
libc-bin           2.24-11+deb9u4                            CVE-2019-9192        Negligible  
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-10029       Medium      
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-1751        High        
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-1752        High        
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-27618       Medium      
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2020-6096        Low         
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-27645       Low         
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-3326        High        
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-33574       Critical    
libc-bin           2.24-11+deb9u4         (won't fix)        CVE-2021-35942       Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-3998        Unknown     
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-3999        Unknown     
libc6              2.24-11+deb9u4         (won't fix)        CVE-2022-23218       Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2022-23219       Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2009-5155        High        
libc6              2.24-11+deb9u4                            CVE-2010-4756        Negligible  
libc6              2.24-11+deb9u4                            CVE-2015-8985        Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2016-10228       Low         
libc6              2.24-11+deb9u4         (won't fix)        CVE-2016-10739       Medium      
libc6              2.24-11+deb9u4         (won't fix)        CVE-2017-12132       Medium      
libc6              2.24-11+deb9u4         (won't fix)        CVE-2018-1000001     High        
libc6              2.24-11+deb9u4                            CVE-2018-20796       Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2018-6485        Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2018-6551        Critical    
libc6              2.24-11+deb9u4                            CVE-2019-1010022     Negligible  
libc6              2.24-11+deb9u4                            CVE-2019-1010023     Negligible  
libc6              2.24-11+deb9u4                            CVE-2019-1010024     Negligible  
libc6              2.24-11+deb9u4                            CVE-2019-1010025     Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2019-19126       Low         
libc6              2.24-11+deb9u4         (won't fix)        CVE-2019-25013       Medium      
libc6              2.24-11+deb9u4                            CVE-2019-6488        Negligible  
libc6              2.24-11+deb9u4                            CVE-2019-7309        Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2019-9169        Critical    
libc6              2.24-11+deb9u4                            CVE-2019-9192        Negligible  
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-10029       Medium      
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-1751        High        
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-1752        High        
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-27618       Medium      
libc6              2.24-11+deb9u4         (won't fix)        CVE-2020-6096        Low         
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-27645       Low         
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-3326        High        
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-33574       Critical    
libc6              2.24-11+deb9u4         (won't fix)        CVE-2021-35942       Critical    
libfdisk1          2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libfdisk1          2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
libgcc1            1:6.3.0-18+deb9u1      (won't fix)        CVE-2018-12886       High        
libgcrypt20        1.7.6-2+deb9u3         (won't fix)        CVE-2019-13627       Medium      
libgcrypt20        1.7.6-2+deb9u3         (won't fix)        CVE-2021-33560       High        
libgcrypt20        1.7.6-2+deb9u3         1.7.6-2+deb9u4     CVE-2021-40528       Medium      
libgcrypt20        1.7.6-2+deb9u3                            CVE-2018-6829        Negligible  
liblz4-1           0.0~r131-2+b1          (won't fix)        CVE-2019-17543       Low         
liblz4-1           0.0~r131-2+b1          0.0~r131-2+deb9u1  CVE-2021-3520        Critical    
libmount1          2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libmount1          2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
libncursesw5       6.0+20161126-1+deb9u2  (won't fix)        CVE-2018-19211       Low         
libncursesw5       6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17594       Low         
libncursesw5       6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17595       Low         
libncursesw5       6.0+20161126-1+deb9u2                     CVE-2021-39537       Negligible  
libpcre3           2:8.39-3                                  CVE-2017-11164       Negligible  
libpcre3           2:8.39-3                                  CVE-2017-16231       Negligible  
libpcre3           2:8.39-3                                  CVE-2017-7245        Negligible  
libpcre3           2:8.39-3                                  CVE-2017-7246        Negligible  
libpcre3           2:8.39-3                                  CVE-2019-20838       Negligible  
libpcre3           2:8.39-3               (won't fix)        CVE-2020-14155       Medium      
libsepol1          2.6-2                  (won't fix)        CVE-2021-36084       Low         
libsepol1          2.6-2                  (won't fix)        CVE-2021-36085       Low         
libsepol1          2.6-2                  (won't fix)        CVE-2021-36086       Low         
libsepol1          2.6-2                  (won't fix)        CVE-2021-36087       Low         
libsmartcols1      2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libsmartcols1      2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
libstdc++6         6.3.0-18+deb9u1        (won't fix)        CVE-2018-12886       High        
libsystemd0        232-25+deb9u12                            CVE-2013-4392        Negligible  
libsystemd0        232-25+deb9u12                            CVE-2017-1000082     Negligible  
libsystemd0        232-25+deb9u12                            CVE-2017-18078       Negligible  
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2018-16888       Low         
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2018-6954        Low         
libsystemd0        232-25+deb9u12                            CVE-2019-20386       Negligible  
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2019-3843        High        
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2019-3844        High        
libsystemd0        232-25+deb9u12                            CVE-2020-13529       Negligible  
libsystemd0        232-25+deb9u12                            CVE-2020-13776       Negligible  
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2020-1712        High        
libsystemd0        232-25+deb9u12         232-25+deb9u13     CVE-2021-33910       Medium      
libsystemd0        232-25+deb9u12         (won't fix)        CVE-2021-3997        Unknown     
libtinfo5          6.0+20161126-1+deb9u2  (won't fix)        CVE-2018-19211       Low         
libtinfo5          6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17594       Low         
libtinfo5          6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17595       Low         
libtinfo5          6.0+20161126-1+deb9u2                     CVE-2021-39537       Negligible  
libudev1           232-25+deb9u12                            CVE-2013-4392        Negligible  
libudev1           232-25+deb9u12                            CVE-2017-1000082     Negligible  
libudev1           232-25+deb9u12                            CVE-2017-18078       Negligible  
libudev1           232-25+deb9u12         (won't fix)        CVE-2018-16888       Low         
libudev1           232-25+deb9u12         (won't fix)        CVE-2018-6954        Low         
libudev1           232-25+deb9u12                            CVE-2019-20386       Negligible  
libudev1           232-25+deb9u12         (won't fix)        CVE-2019-3843        High        
libudev1           232-25+deb9u12         (won't fix)        CVE-2019-3844        High        
libudev1           232-25+deb9u12                            CVE-2020-13529       Negligible  
libudev1           232-25+deb9u12                            CVE-2020-13776       Negligible  
libudev1           232-25+deb9u12         (won't fix)        CVE-2020-1712        High        
libudev1           232-25+deb9u12         232-25+deb9u13     CVE-2021-33910       Medium      
libudev1           232-25+deb9u12         (won't fix)        CVE-2021-3997        Unknown     
libuuid1           2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
libuuid1           2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
login              1:4.4-4.1                                 CVE-2007-5686        Negligible  
login              1:4.4-4.1                                 CVE-2013-4235        Negligible  
login              1:4.4-4.1              1:4.4-4.1+deb9u1   CVE-2017-12424       Critical    
login              1:4.4-4.1              1:4.4-4.1+deb9u1   CVE-2017-20002       High        
login              1:4.4-4.1              (won't fix)        CVE-2018-7169        Low         
login              1:4.4-4.1                                 CVE-2019-19882       Negligible  
mongodb            3.6.1                                     CVE-2014-8180        Medium      
mongodb            3.6.1                                     CVE-2017-18381       Critical    
mongodb            3.6.1                                     CVE-2017-2665        High        
mongodb            3.6.1                                     CVE-2018-20802       Medium      
mongodb            3.6.1                                     CVE-2018-20803       Medium      
mongodb            3.6.1                                     CVE-2018-20804       Medium      
mongodb            3.6.1                                     CVE-2018-20805       Medium      
mongodb            3.6.1                                     CVE-2018-25004       Medium      
mongodb            3.6.1                                     CVE-2019-20925       High        
mongodb            3.6.1                                     CVE-2019-2386        High        
mongodb            3.6.1                                     CVE-2019-2389        Medium      
mongodb            3.6.1                                     CVE-2019-2390        High        
mongodb            3.6.1                                     CVE-2019-2392        Medium      
mongodb            3.6.1                                     CVE-2019-2393        Medium      
mongodb            3.6.1                                     CVE-2020-7921        Medium      
mongodb            3.6.1                                     CVE-2020-7928        Medium      
mongodb            3.6.1                                     CVE-2020-7929        Medium      
mongodb            3.6.1                                     CVE-2021-20333       Medium      
mount              2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
mount              2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-3998        Unknown     
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-3999        Unknown     
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2022-23218       Critical    
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2022-23219       Critical    
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2009-5155        High        
multiarch-support  2.24-11+deb9u4                            CVE-2010-4756        Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2015-8985        Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2016-10228       Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2016-10739       Medium      
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2017-12132       Medium      
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2018-1000001     High        
multiarch-support  2.24-11+deb9u4                            CVE-2018-20796       Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2018-6485        Critical    
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2018-6551        Critical    
multiarch-support  2.24-11+deb9u4                            CVE-2019-1010022     Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2019-1010023     Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2019-1010024     Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2019-1010025     Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2019-19126       Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2019-25013       Medium      
multiarch-support  2.24-11+deb9u4                            CVE-2019-6488        Negligible  
multiarch-support  2.24-11+deb9u4                            CVE-2019-7309        Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2019-9169        Critical    
multiarch-support  2.24-11+deb9u4                            CVE-2019-9192        Negligible  
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-10029       Medium      
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-1751        High        
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-1752        High        
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-27618       Medium      
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2020-6096        Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-27645       Low         
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-3326        High        
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-33574       Critical    
multiarch-support  2.24-11+deb9u4         (won't fix)        CVE-2021-35942       Critical    
ncurses-base       6.0+20161126-1+deb9u2  (won't fix)        CVE-2018-19211       Low         
ncurses-base       6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17594       Low         
ncurses-base       6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17595       Low         
ncurses-base       6.0+20161126-1+deb9u2                     CVE-2021-39537       Negligible  
ncurses-bin        6.0+20161126-1+deb9u2  (won't fix)        CVE-2018-19211       Low         
ncurses-bin        6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17594       Low         
ncurses-bin        6.0+20161126-1+deb9u2  (won't fix)        CVE-2019-17595       Low         
ncurses-bin        6.0+20161126-1+deb9u2                     CVE-2021-39537       Negligible  
npm-user-validate  1.0.0                  1.0.1              GHSA-xgh6-85xh-479p  Low         
npm-user-validate  1.0.0                  1.0.1              GHSA-pw54-mh39-w3hc  High        
npm-user-validate  1.0.0                                     CVE-2020-7754        High        
passwd             1:4.4-4.1                                 CVE-2007-5686        Negligible  
passwd             1:4.4-4.1                                 CVE-2013-4235        Negligible  
passwd             1:4.4-4.1              1:4.4-4.1+deb9u1   CVE-2017-12424       Critical    
passwd             1:4.4-4.1              1:4.4-4.1+deb9u1   CVE-2017-20002       High        
passwd             1:4.4-4.1              (won't fix)        CVE-2018-7169        Low         
passwd             1:4.4-4.1                                 CVE-2019-19882       Negligible  
path-parse         1.0.6                  1.0.7              GHSA-hj48-42vr-x3v9  Medium      
path-parse         1.0.6                                     CVE-2021-23343       High        
perl-base          5.24.1-3+deb9u7                           CVE-2011-4116        Negligible  
perl-base          5.24.1-3+deb9u7        (won't fix)        CVE-2020-16156       High        
rc                 1.2.8                                     CVE-2014-1936        High        
rc                 1.2.8                                     CVE-2020-17753       Medium      
redis              3.0.2                  3.1.1              GHSA-35q2-47q7-3pc3  Low         
redis              3.0.2                                     CVE-2013-7458        Low         
redis              3.0.2                                     CVE-2015-8080        High        
redis              3.0.2                                     CVE-2016-10517       High        
redis              3.0.2                                     CVE-2018-11218       Critical    
redis              3.0.2                                     CVE-2018-11219       Critical    
redis              3.0.2                                     CVE-2018-12326       High        
redis              3.0.2                                     CVE-2018-12453       High        
redis              3.0.2                                     CVE-2019-10192       High        
redis              3.0.2                                     CVE-2019-10193       High        
redis              3.0.2                                     CVE-2020-14147       High        
redis              3.0.2                                     CVE-2021-29469       High        
redis              3.0.2                                     CVE-2021-32626       High        
redis              3.0.2                                     CVE-2021-32761       High        
redis              3.0.2                                     CVE-2021-3470        Medium      
ssri               6.0.1                  6.0.2              GHSA-vx3p-948g-6vhq  High        
ssri               6.0.1                                     CVE-2021-27290       High        
tar                1.29b-1.1                                 CVE-2005-2541        Negligible  
tar                1.29b-1.1                                 CVE-2019-9923        Negligible  
tar                1.29b-1.1                                 CVE-2021-20193       Negligible  
tar                1.29b-1.1              1.29b-1.1+deb9u1   CVE-2018-20482       Medium      
tar                4.4.13                 4.4.15             GHSA-r628-mhmh-qjhw  High        
tar                4.4.13                 4.4.14             GHSA-3jfq-g458-7qm9  High        
tar                4.4.13                 4.4.18             GHSA-5955-9wpr-37jh  High        
tar                4.4.13                 4.4.18             GHSA-qq89-hq3f-393p  High        
tar                4.4.13                 4.4.16             GHSA-9r2w-394v-53qc  High        
tar                4.4.13                                    CVE-2021-32803       High        
tar                4.4.13                                    CVE-2021-32804       High        
tar                4.4.13                                    CVE-2021-37701       High        
tar                4.4.13                                    CVE-2021-37712       High        
tar                4.4.13                                    CVE-2021-37713       High        
through            2.3.8                                     CVE-2021-29940       Critical    
util-linux         2.29.2-1+deb9u1        (won't fix)        CVE-2016-2779        High        
util-linux         2.29.2-1+deb9u1        (won't fix)        CVE-2021-37600       Low         
y18n               3.2.1                  3.2.2              GHSA-c4w7-xm78-47vh  High        
y18n               3.2.1                                     CVE-2020-7774        High        
y18n               4.0.0                  4.0.1              GHSA-c4w7-xm78-47vh  High        
y18n               4.0.0                                     CVE-2020-7774        High        
yargs-parser       9.0.2                  13.1.2             GHSA-p9pc-299p-vxgp  Medium      
yargs-parser       9.0.2                                     CVE-2020-7608        Medium      

Here, there are multiple FPs:

Unfortunately, these FPs are a real pain when scanning all running images from multiple kubernetes clusters. You end up with hundreds of High or Critical vulnerabilities triggered by these client libs of redis/mongodb. Also, the cookie module is widely used across nodejs web apps.

Anything else we need to know?:

Environment:

➜ grype version
Application:          grype
Version:              0.32.0
Syft Version:         v0.36.0
BuildDate:            2022-01-20T18:48:06Z
GitCommit:            3ba7e56e42fddca0fd944986596068e429d448fa
GitTreeState:         clean
Platform:             darwin/amd64
GoVersion:            go1.16.13
Compiler:             gc
Supported DB Schema:  3
OfriOuzan commented 2 years ago

We encountered the same issue on the following environment What happened: In a Vulnerability Scanner Benchmark Research we are conducting, we executed Grype on 20 different containers and found out that Grype has multiple False Positives. What you expected to happen: We expected Grype not to report on these CVEs. How to reproduce it (as minimally and precisely as possible): Install the Docker Images (from the links below) and execute Grype using the following command: grype <container_name> —-output json > <output_file_path>

Ghost

Kibana

willmurphyscode commented 1 year ago

@StefanCenusa I believe this was fixed.

For the images that @OfriOuzan reported, I'm no longer able to reproduce the issue:

grype --platform linux/amd64 \
ghost:5.2.4@sha256:42137b9bd1faf4cdea5933279c48a912d010ef614551aeb0e44308600aa3e69f | \
grep CVE-2017-18589

prints no vulnerabilities.

grype --platform linux/amd64 \
docker:kibana:8.3.2@sha256:51635619b14a0f3a764f39c4c51d527304d8c33fbda05d72652b18255639122b | \
grep CVE-2017-18589

also prints no vulnerabilities.

Also, from the original post:

 grype --platform linux/amd64 docker.io/stefancenusa/normal-pancake:1.0.1 | grep CVE-2017-18589

prints no vulnerabilities.

I believe this was fixed in https://github.com/anchore/grype/releases/tag/v0.60.0, where grype stopped using CPE matching by default for javascript packages. If you believe this is still an issue, please let us know. Thanks!

willmurphyscode commented 1 year ago

Added changelog-ignore because this was fixed in 0.60.0 and so shouldn't be included in the current release's release notes.