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

Alpine image vulnerability scan regression #390

Open
dpodder opened this issue Dec 21, 2023 · 5 comments · May be fixed by #402
Open

Alpine image vulnerability scan regression #390

dpodder opened this issue Dec 21, 2023 · 5 comments · May be fixed by #402

Comments

@dpodder
Copy link

dpodder commented Dec 21, 2023

Possibly as a result of #389, the latest Alpine image tags light up significantly worse than earlier tags when scanned for vulnerabilities. Part of the reason our organization prefers Alpine based images is for its minimal attack surface; the apparent regression is increasing friction for us to adopt the newer builds.

Are additional components really needed in the redis Alpine image? If not, can they be removed again to clean up the scan results?

See for example: https://hub.docker.com/_/redis/tags?page=1&name=7.2.3-alpine3

image

@LaurentGoderre
Copy link
Contributor

These are false positive. https://github.com/tianon/gosu/blob/master/SECURITY.md

@bgrimm1
Copy link

bgrimm1 commented Apr 25, 2024

The vulnerabilities are not related to "gosu". It appears to be an outdated stdlib dependency. This is also a problem for me as we block any images with critical vulnerabilities.

image

@LaurentGoderre
Copy link
Contributor

Stdlib is the Golang standard library which gosu used. However, the go compiler only uses what the source code uses so the vulnerable part of the library is not used in the end binary which makes it a false positive.

@bgrimm1
Copy link

bgrimm1 commented Apr 25, 2024

ahh I just discovered that. Unfortunately that will not satisfy the powers that be on my end. I can't even pull that image as a base to try and update that library to the suggested version.

@bgrimm1
Copy link

bgrimm1 commented Apr 25, 2024

Seems like I'm able to pull redis:7.2.3-alpine3.18 which is much newer than what I had. At least it hasnt been blocked yet...

@tianon tianon linked a pull request Jun 6, 2024 that will close this issue
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 a pull request may close this issue.

3 participants