containers: [Bug]: CVE-2024-8176 in alpine images

Please add the exact image (with tag) that you are using

eclipse-temurin:21-jre-alpine

Please add the version of Docker you are running

not relevant

What happened?

A high vulnerability is found in one of the packages installed in this JRE image:

apk / alpine/expat / 2.6.4-r0

See https://hub.docker.com/layers/library/eclipse-temurin/21-jre-alpine-3.21/images/sha256-f184bb601f9e6068dd0a92738764d1ff447ab68c15ddbf8c303c5c29de9a1df8.

Can this be patched? Thank you!

Relevant log output


About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

@karianna --> As of today the CVE is still present in versions 21,22 and 23. Is it possible to launch a new build from this repository in order to clear the layer 5 ?

running trivy on “eclipse-temurin:21-jdk-alpine” reveals two CVEs: CVE-2025-0840 and CVE-2024-8176 ( :21-jdk-alpine resolves as sha256:cafcfad1d9d3b6e7dd983fa367f085ca1c846ce792da59bcb420ac4424296d56 ) running trivy on the base image “alpine:3.21” shows not CVE (:3.21 resolves as sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c)

now building the image myself, assuming this is the correct Dockerfile : https://github.com/adoptium/containers/tree/main/21/jdk/alpine/3.21

A trivy run against this own version does not have a CVE, so I would assume there is a caching issue when building, or it is just because temurin was build 10 Days ago and not updated since then.

-> so should you not just build temurin nightly instead? This will probably happen again in the future.