From 25313d3e845eb00c5579198924708f61232f78db Mon Sep 17 00:00:00 2001 From: Sabrina Demagny Date: Thu, 13 Feb 2025 08:23:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=EF=B8=8F(docker)=20patch=20libssl3?= =?UTF-8?q?=20and=20libcrypto3=20to=20address=20CVE-2024-12797?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added temporary root privileges to update OpenSSL libraries. Upgrades libssl3 and libcrypto3 to 3.3.3-r0 to fix HIGH severity vulnerability. Properly switches back to nginx user after updates. Maintains unprivileged execution while addressing security concern affecting RFC7250 Raw Public Keys authentication. Security: CVE-2024-12797 --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 07236aa..c6b6571 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,12 @@ RUN yarn build # ---- Front-end image ---- FROM nginxinc/nginx-unprivileged:1.26-alpine AS frontend-production +USER root + +RUN apk update && apk upgrade libssl3 libcrypto3 + +USER nginx + # Un-privileged user running the application ARG DOCKER_USER USER ${DOCKER_USER}