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

Updating busybox version to fix CVEs #216

Merged
merged 2 commits into from
Aug 5, 2022

Conversation

nishant-yt
Copy link
Contributor

Signed-off-by: Nishant Gupta [email protected]

Change log description

Upgrade busybox version to 1.35.0-r17 so as to fix CVE-2022-30065 and CVE-2022-28391

Purpose of the change

Fixes #215

What the code does

upgrades busybox version to 1.35.0-r17

How to verify it

  • Pull the latest docker image
  • Spawn a container out of that image and go inside the container
  • run the command apk list | grep busybox to check the installed version of busybox

@nishant-yt nishant-yt requested review from jkhalack and anishakj August 4, 2022 06:52
@codecov-commenter
Copy link

codecov-commenter commented Aug 4, 2022

Codecov Report

Merging #216 (035bd4f) into master (a064530) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #216   +/-   ##
=======================================
  Coverage   79.42%   79.42%           
=======================================
  Files          11       11           
  Lines        1852     1852           
=======================================
  Hits         1471     1471           
  Misses        296      296           
  Partials       85       85           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Dockerfile Outdated
@@ -41,9 +41,10 @@ RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /src/${PROJECT_NAME} \
# =============================================================================
FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}alpine:${ALPINE_VERSION} AS final

RUN apk add --update \
RUN apk add --upgrade \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep the update too.
The recommendation is to run the update first (it updates the list of available packages) and then the upgrade, as in

apk update
apk add --upgrade busybox 

See the documentation: https://wiki.alpinelinux.org/wiki/Package_management#Upgrade_a_Running_System

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Dockerfile, it would translate to RUN apk update && apk add --upgrade \

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jkhalack for pointing it out. Will fix this

Signed-off-by: Nishant Gupta <[email protected]>
@anishakj anishakj merged commit 1a09a2d into master Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the busybox version in Dockerfile
4 participants