Skip to content

Docker scan produces 331 vulnerabilities #147

Open

Description

@mjmaurer
docker pull elixir:1.9
docker scan elixir

Tested 537 dependencies for known vulnerabilities, found 331 vulnerabilities.

A good amount are high severity. I know local scan is still beta, so it's possible there are bugs. I'm curious how these are introduced considering how often the image is built.

Activity

  1. conradwt commented on Mar 16, 2021

    @conradwt

    @mjmaurer I'm seeing similar numbers in regards to elixir:1.11.4 but many of these vulnerabilities are coming from dependencies included in the image. Thus, I recommend using a different image that works for your use case. For example

    $ docker scan elixir:1.11.4-alpine  
    
    ...
    
    Tested 22 dependencies for known vulnerabilities, found 1 vulnerability.
    

    Note: The one vulnerability here is as follows:

    Medium severity vulnerability found in musl/musl
    
    $ docker scan elixir:1.11.4-slim
    
    ...
    
    Tested 96 dependencies for known vulnerabilities, found 63 vulnerabilities.
    

    In general, one can reduce the level of security vulnerabilities by selecting an image that doesn't include unnecessary dependencies like alpine or slim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions