From 302e2bf3630bffac4cdc3995af8bc4496249cbea Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Wed, 19 Oct 2022 04:22:25 -0700 Subject: [PATCH] Update packages for CVEs - 2.4 (#3176) Update packages for CVEs Co-authored-by: Ciara Stacke <18287516+ciarams87@users.noreply.github.com> --- build/Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 2f2c3e1067..9cd3028f71 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -16,8 +16,6 @@ FROM nginx:1.23.1 AS debian RUN --mount=type=bind,from=opentracing-lib,target=/tmp/ot/ \ apt-get update \ && apt-get install --no-install-recommends --no-install-suggests -y libcap2-bin \ - # temp fix for CVE-2022-40674 - && apt-get install -y libexpat1 \ && rm -rf /var/lib/apt/lists/* \ && cp -av /tmp/ot/usr/local/lib/libopentracing.so* /tmp/ot/usr/local/lib/libjaegertracing*so* /tmp/ot/usr/local/lib/libzipkin*so* /tmp/ot/usr/local/lib/libdd*so* /tmp/ot/usr/local/lib/libyaml*so* /usr/local/lib/ \ && cp -av /tmp/ot/usr/lib/nginx/modules/ngx_http_opentracing_module.so /usr/lib/nginx/modules/ \ @@ -30,8 +28,8 @@ FROM nginx:1.23.1-alpine AS alpine RUN --mount=type=bind,from=alpine-opentracing-lib,target=/tmp/ot/ \ apk add --no-cache libcap libstdc++ \ - # temp fix for CVE-2022-3209 and CVE-2022-35252 - && apk upgrade --no-cache libxml2 curl libcurl \ + # temp fix for CVE-2022-40303 + && apk upgrade --no-cache libxml2 \ && cp -av /tmp/ot/usr/local/lib/libopentracing.so* /tmp/ot/usr/local/lib/libjaegertracing*so* /tmp/ot/usr/local/lib/libzipkin*so* /tmp/ot/usr/local/lib/libdd*so* /tmp/ot/usr/local/lib/libyaml*so* /usr/local/lib/ \ && cp -av /tmp/ot/usr/lib/nginx/modules/ngx_http_opentracing_module.so /usr/lib/nginx/modules/ \ && ldconfig /usr/local/lib/ @@ -91,8 +89,8 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode && printf "%s\n" "deb https://pkgs.nginx.com/app-protect/${NGINX_PLUS_VERSION}/debian ${DEBIAN_VERSION} nginx-plus" \ "deb https://pkgs.nginx.com/app-protect-security-updates/debian ${DEBIAN_VERSION} nginx-plus" > /etc/apt/sources.list.d/nginx-app-protect.list \ && apt-get update \ - # temp fix for CVE-2022-37434 and DLA-3112-1 - && apt-get install zlib1g libbz2-1.0 \ + # temp fix for CVE-2021-33574 + && apt-get install libc6 libc-bin \ && apt-get install --no-install-recommends --no-install-suggests -y app-protect app-protect-attack-signatures app-protect-threat-campaigns \ && apt-get purge --auto-remove -y curl; \ fi \