Skip to content

grype not reporting issues present in GHSA for System.Data.SqlClient 4.8.5 #1693

Description

@vishwesh-sharma

What happened: When scanning dotnet sdk 8.0 image, 15 medium vulnerabilities are reported

What you expected to happen: Since System.Data.SqlClient 4.8.5 is being used in the image, GHSA-98g6-xh36-x2p7 which is a high severity exploit should have been reported. Additionally, System.Data.SqlClient 4.700.22.51706 is also being used for which GHSA-8g2p-5pqh-5jmc should have been reported

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

syft mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0-arm64v8  --select-catalogers "+sbom-cataloger" --scope all-layers | grep SqlClient
System.Data.SqlClient                                           4.700.22.51706                                                                                  dotnet          
System.Data.SqlClient                                           4.8.5                                                                                           UnknownPackage  
runtime.native.System.Data.SqlClient.sni                        4.7.0                                                                                           UnknownPackage  
runtime.win-arm64.runtime.native.System.Data.SqlClient.sni      4.4.0                                                                                           UnknownPackage  
runtime.win-x64.runtime.native.System.Data.SqlClient.sni        4.4.0                                                                                           UnknownPackage  
runtime.win-x86.runtime.native.System.Data.SqlClient.sni        4.4.0                                                                                           UnknownPackage 
grype mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0-arm64v8  --scope all-layers --add-cpes-if-none
 ✔ Vulnerability DB                [no update available]  
 ✔ Loaded image                                                                                                                                                                                     mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0-arm64v8
 ✔ Parsed image                                                                                                                                                                     sha256:7107677203df209f07f528a2ff74aececd3181be0c3950245ed951548b8ec4d0
 ✔ Cataloged contents                                                                                                                                                                      0393ffb214ec0589cc8ebe31c02ff532d04b4ac8b277870b04fe6c2658ef0bf7
   ├── ✔ Packages                        [3,993 packages]  
   ├── ✔ File digests                    [10,869 files]  
   └── ✔ File metadata                   [10,869 locations]  
 ✔ Scanned for vulnerabilities     [15 vulnerability matches]  
   ├── by severity: 0 critical, 0 high, 15 medium, 0 low, 0 negligible
   └── by status:   15 fixed, 0 not-fixed, 0 ignored 
NAME                                   INSTALLED                                                   FIXED-IN        TYPE    VULNERABILITY        SEVERITY 
Microsoft.IdentityModel.JsonWebTokens  7.0.3.41017013651.bb354ceabed19189245e075abb864f327b6c14ad  7.1.2           dotnet  GHSA-8g9c-28fc-mcx2  Medium    
Microsoft.IdentityModel.JsonWebTokens  7.0.3.41017013651.bb354ceabed19189245e075abb864f327b6c14ad  7.1.2           dotnet  GHSA-59j7-ghrg-fj52  Medium    
System.IdentityModel.Tokens.Jwt        7.0.3.41017013651.bb354ceabed19189245e075abb864f327b6c14ad  7.1.2           dotnet  GHSA-8g9c-28fc-mcx2  Medium    
System.IdentityModel.Tokens.Jwt        7.0.3.41017013651.bb354ceabed19189245e075abb864f327b6c14ad  7.1.2           dotnet  GHSA-59j7-ghrg-fj52  Medium    
curl                                   8.3.0-2.cm2                                                 0:8.5.0-1.cm2   rpm     CVE-2023-46219       Medium    
curl                                   8.3.0-2.cm2                                                 0:8.5.0-1.cm2   rpm     CVE-2023-46218       Medium    
curl-libs                              8.3.0-2.cm2                                                 0:8.5.0-1.cm2   rpm     CVE-2023-46219       Medium    
curl-libs                              8.3.0-2.cm2                                                 0:8.5.0-1.cm2   rpm     CVE-2023-46218       Medium    
openssh                                8.9p1-2.cm2                                                 0:8.9p1-3.cm2   rpm     CVE-2023-51385       Medium    
openssh                                8.9p1-2.cm2                                                 0:8.9p1-3.cm2   rpm     CVE-2023-51384       Medium    
openssh-clients                        8.9p1-2.cm2                                                 0:8.9p1-3.cm2   rpm     CVE-2023-51385       Medium    
openssh-clients                        8.9p1-2.cm2                                                 0:8.9p1-3.cm2   rpm     CVE-2023-51384       Medium    
openssh-server                         8.9p1-2.cm2                                                 0:8.9p1-3.cm2   rpm     CVE-2023-51385       Medium    
openssh-server                         8.9p1-2.cm2                                                 0:8.9p1-3.cm2   rpm     CVE-2023-51384       Medium    
sqlite-libs                            3.39.2-2.cm2                                                0:3.39.2-3.cm2  rpm     CVE-2023-7104        Medium

Anything else we need to know?:

Environment:

  • Output of grype version:
    Application: grype
    Version: 0.74.4
    BuildDate: 2024-01-31T17:32:28Z
    GitCommit: brew
    GitDescription: [not provided]
    Platform: darwin/arm64
    GoVersion: go1.21.6
    Compiler: gc
    Syft Version: v0.103.1
    Supported DB Schema: 5
  • OS (e.g: cat /etc/os-release or similar):
    Darwin LYxxxxxxxx 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020 arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingchangelog-ignoredo not add a entry for this when generating the changelogfalse-negative

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions