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

Current Alpine image contains 2 high severity CVEs #66

Closed
augustocravosilva opened this issue May 11, 2021 · 3 comments
Closed

Current Alpine image contains 2 high severity CVEs #66

augustocravosilva opened this issue May 11, 2021 · 3 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@wglambert wglambert added the question Usability question, not directly related to an error with the image label May 11, 2021
@wglambert
Copy link

wglambert commented May 11, 2021

CVE-2021-30139 is fixed with apk-tools 2.12.5-r0

CVE-2021-28831 is fixed with busybox 1.32.1-r4

Which the image has, and is currently up to date with every available package

$ docker run -it --rm --user root memcached:alpine ash

/ # apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
v3.13.5-92-gaf6c01c653 [https://dl-cdn.alpinelinux.org/alpine/v3.13/main]
v3.13.5-95-g640af164dc [https://dl-cdn.alpinelinux.org/alpine/v3.13/community]
OK: 13888 distinct packages available

/ # apk list --upgradeable

/ # apk list | grep apk-tools-2.12.5
apk-tools-2.12.5-r0 x86_64 {apk-tools} (GPL-2.0-only) [installed]

/ # apk list | grep busybox-1.32.1
busybox-1.32.1-r6 x86_64 {busybox} (GPL-2.0-only) [installed]

See also https://github.com/docker-library/faq#why-does-my-security-scanner-show-that-an-image-has-cves
And docker-library/openjdk#449 (comment), docker-library/postgres#286 (comment) docker-library/openjdk#161, docker-library/openjdk#112, docker-library/postgres#286, docker-library/drupal#84, docker-library/official-images#2740, docker-library/ruby#117, docker-library/ruby#94, docker-library/python#152, docker-library/php#242, docker-library/buildpack-deps#46, docker-library/openjdk#185.

A CVE doesn't imply having an actual vulnerability, and often is even a false positive (given how most distributions handle versioning/security updates in stable releases). If there are actionable items we can resolve, we're happy to do so (and do so actively). We update all Debian based images to include any updates in apt packages at least monthly (we regenerate the base images and then rebuild all dependent images).

@augustocravosilva
Copy link
Author

Thanks! I got confused as I didn't see an update to the repo in a while. Apologies for the noise. Closing

@wglambert
Copy link

Yeah if you look at the specific tags on Dockerhub it'll show when they were last updated. So for the Alpine variant it was on April 14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

2 participants