Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Docker image to use Alpine 3.15 #2310

Closed
nikhil-gupta2 opened this issue Dec 22, 2021 · 1 comment · Fixed by #2312
Closed

Update Docker image to use Alpine 3.15 #2310

nikhil-gupta2 opened this issue Dec 22, 2021 · 1 comment · Fixed by #2312

Comments

@nikhil-gupta2
Copy link

Brief summary

Using the latest Docker image as base image and running a trivy security scan on image generates following...

Total: 18 (HIGH: 18, CRITICAL: 0)

+------------+------------------+----------+-------------------+---------------+---------------------------------------+
| LIBRARY | VULNERABILITY ID | SEVERITY | INSTALLED VERSION | FIXED VERSION | TITLE |
+------------+------------------+----------+-------------------+---------------+---------------------------------------+
| busybox | CVE-2021-42378 | HIGH | 1.33.1-r3 | 1.33.1-r6 | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42378 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42379 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42379 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42380 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42380 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42381 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42381 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42382 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42382 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42383 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42383 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42384 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42384 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42385 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42385 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42386 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42386 |
+------------+------------------+ + + +---------------------------------------+
| ssl_client | CVE-2021-42378 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42378 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42379 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42379 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42380 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42380 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42381 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42381 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42382 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42382 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42383 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42383 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42384 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42384 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42385 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42385 |

  •        +------------------+          +                   +               +---------------------------------------+
    

| | CVE-2021-42386 | | | | busybox: use-after-free in |
| | | | | | awk applet leads to denial |
| | | | | | of service and possibly... |
| | | | | | -->avd.aquasec.com/nvd/cve-2021-42386 |
+------------+------------------+----------+-------------------+---------------+---------------------------------------+

usr/bin/k6 (gobinary)

k6 version

k6:master

OS

linux/amd64

Docker version and image (if applicable)

loadimpact/k6:master

Steps to reproduce the problem

Build docker image
Run trivy Security Scan

Expected behaviour

Security scan should pass

Actual behaviour

Security scan is failing

@na--
Copy link
Member

na-- commented Dec 22, 2021

Thanks for this report. We don't use or expose awk in the image, so these security issues don't affect us. Besides, since we don't fix the minor version of Alpine in the Dockerfile:

FROM alpine:3.14

The latest master docker image already uses v3.14.3, which includes fixes for them:

$ docker run -it --rm --entrypoint cat loadimpact/k6:master "/etc/alpine-release"
3.14.3

All of that said, there isn't a reason to not update to Alpine 3.15, so I'll leave this issue open and just change the title to that.

@na-- na-- changed the title SECURITY VULNERABILITIES Update Docker image to use Alpine 3.15 Dec 22, 2021
knittl added a commit to knittl/k6 that referenced this issue Dec 22, 2021
na-- pushed a commit that referenced this issue Dec 23, 2021
oleiade pushed a commit that referenced this issue Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants