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

How to resolve freetype package critical vulnerability in openjdk8-jre base image? #496

Closed
arunsai271 opened this issue May 5, 2022 · 2 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@arunsai271
Copy link

Hi Team,

I use openjdk8-jre alpine image for my java application as you can see in the below configuration, On April-03, 2022, CVE Issue - https://nvd.nist.gov/vuln/detail/CVE-2022-27404#vulnCurrentDescriptionTitle is published and I'm trying to delete freetype package from the container but it's not allowing since freetype package is dependent of openjdk8-jre.(I get the below snaphsot 1.1 result when i try to remove from the container). Event I tried to upgrade the freetype package to higher version, but unfortunately the freetype-2.11.1-r0 is the latest version alpine3.15.4 can support and not able to upgrade to higher version which is having no vulnerability. (Please find the Image 1.2 below for reference)

Image1.1
image

Image1.2
image

Docker File:

#Install openjdk8-jre with alpine:3.15.4
FROM alpine:3.15.4
RUN apk add openjdk8-jre
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk

ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} test.jar
CMD ["java","-jar","test.jar"]
@wglambert wglambert added the question Usability question, not directly related to an error with the image label May 5, 2022
@wglambert
Copy link

Looks like freetype on Alpine is waiting on https://gitlab.alpinelinux.org/alpine/aports/-/issues/13777

The Debian variant is still vulnerable on the stable releases https://security-tracker.debian.org/tracker/CVE-2022-27404
The Debian security team also considers it a minor issue

@yosifkit
Copy link
Member

yosifkit commented May 5, 2022

Just installing openjdk8-jre from Alpine's apk packages is unrelated to the images maintained here.

The openjdk:8-jre-alpine image not been updated in 3 years (#322 and #272).

@yosifkit yosifkit closed this as completed May 5, 2022
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

3 participants