jenkinsci/docker

Use Debian bookworm base image instead of bullseye to decrease unfixed vulnerability count

gokhansengun opened this issue · 6 comments

What feature do you want to see added?

Debian released bookworm (version 12) on June 10, this new release fixes many CVEs that were left unfixed in bullseye.

Creating a Jenkins docker image basing debian:bullseye-20230814 results in 40 high and 5 critical CVEs unfixed (see scan results at the end). If debian:bookworm-20230818 is used, that number decreases to 9 high and 2 critical CVEs.

An example is CVE-2023-27533, this CVE was fixed in bookworm but not in bullseye.

Updating bullseye with bookworm seems to be creating no issues for image creation and in runtime, would you consider doing the change?

bookworm-base-vulns.txt
bullseye-base-vulns.txt

Upstream changes

No response

timja commented

shouldn't be an issue, the new Java 21 image is on bookworm:
#1683

Proposal: let's implement it on the master branch to it will be available for the next weekly release in any case.

We'll have to be clear in the changelog that the base image changes : it is a breaking change for users building on top of it.

For LTS version, should we wait for next week or for the next one? (cc @MarkEWaite @timja @NotMyFault @Poddingue )

timja commented

We should aim to get it this week / next week before the LTS release.

If we get it in before .1 that would be best

timja commented

cc @kmartens27 FYI for changelog

thanks @timja, I'll be sure to add it to the changelog accordingly

timja commented

it'll be in weekly and LTS