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

Rebuild alpine image to fix some CVE #702

Closed
acmnu opened this issue Feb 21, 2022 · 5 comments
Closed

Rebuild alpine image to fix some CVE #702

acmnu opened this issue Feb 21, 2022 · 5 comments

Comments

@acmnu
Copy link

acmnu commented Feb 21, 2022

Currently we got a number of CVE in expat-2.4.3 which is in current python:3.10-alpine image.
It is already fixed in Alpine repo https://git.alpinelinux.org/aports/commit/?id=383d2d74ceae9ae1fd4d6d981d31b99c2ff804cf

# secfixes:
#   2.4.5-r0:
#     - CVE-2022-25235
#     - CVE-2022-25236
#     - CVE-2022-25313
#     - CVE-2022-25314
#     - CVE-2022-25315

So we just have to rebuild python image to have latest expat in it. Could you please do it.

@acmnu
Copy link
Author

acmnu commented Feb 21, 2022

@kuhella it is about your issue.

@supreeth90
Copy link

python:3.10-alpine image also has CVE-2022-23852 and CVE-2022-23990 critical CVEs which are fixed in newer version of expat library.

https://github.com/libexpat/libexpat/blob/R_2_4_5/expat/Changes

Please let us know when you are rebuild it with new expat version as well.

@yosifkit
Copy link
Member

Same comment as #699 (comment). So, once the base image does an update, these images will be rebuilt.

@acmnu
Copy link
Author

acmnu commented Feb 28, 2022

Ok I see you did this. I think the issue has been fixed:

:) > docker pull python:3.10-alpine
3.10-alpine: Pulling from library/python
59bf1c3509f3: Already exists 
07a400e93df3: Already exists 
64052ee245ef: Pull complete 
a44d093ad4a5: Pull complete 
f09a2cc82019: Pull complete 
Digest: sha256:a9865ba6472324621e81e1da5cbd02069d528215a4b49d49695eac693c10488a
Status: Downloaded newer image for python:3.10-alpine
docker.io/library/python:3.10-alpine
:) > docker run -it --rm python:3.10-alpine apk list expat
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: No such file or directory
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/community: No such file or directory
expat-2.4.5-r0 x86_64 {expat} (MIT) [installed]

@kuhella Are we happy?

@yosifkit The issue was not related to base Alpine image because it has not expat inside. Expat installed as dependency to some python lib, so you need to rebuild python image more often then original alpine image.

@tianon
Copy link
Member

tianon commented Mar 16, 2022

This will be fixed via docker-library/official-images#12055. 👍

@tianon tianon closed this as completed Mar 16, 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

No branches or pull requests

4 participants