@@ -9,8 +9,8 @@ FROM nginx:1.21.6 AS debian
9
9
10
10
RUN apt-get update \
11
11
&& apt-get install --no-install-recommends --no-install-suggests -y libcap2-bin \
12
- # temporary fix for CVE-2022-22822
13
- && apt-get install -y libexpat1 \
12
+ # temp fix for CVE-2022-0891, CVE-2021-33574, CVE-2021-3997 and CVE-2022-23308
13
+ && apt-get install -y libtiff5 libc6 libc-bin libxml2 libsystemd0 libudev1 \
14
14
&& rm -rf /var/lib/apt/lists/* \
15
15
&& echo $NGINX_VERSION > nginx_version
16
16
@@ -20,8 +20,8 @@ RUN apt-get update \
20
20
FROM docker.io/library/nginx:1.21.6-alpine AS alpine
21
21
22
22
RUN apk add --no-cache libcap \
23
- # temporary fix for CVE-2021-42374
24
- && apk upgrade --no-cache busybox
23
+ # temporary fix for CVE-2022-0778 and CVE-2018-25032
24
+ && apk upgrade --no-cache libretls zlib
25
25
26
26
27
27
# ############################################ Base image for Alpine with NGINX Plus #############################################
@@ -74,6 +74,8 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
74
74
&& apt-get update \
75
75
&& apt-get install --no-install-recommends --no-install-suggests -y \
76
76
nginx-plus-module-appprotect app-protect app-protect-attack-signatures app-protect-threat-campaigns \
77
+ # temp fix for CVE-2021-43618
78
+ && apt-get install -y libgmp10 \
77
79
&& apt-get purge --auto-remove -y apt-transport-https gnupg curl \
78
80
&& rm -rf /var/lib/apt/lists/* \
79
81
&& rm /etc/apt/sources.list.d/nginx-app-protect.list
@@ -95,6 +97,8 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
95
97
&& printf "%s\n " "deb https://pkgs.nginx.com/app-protect-dos/${NGINX_PLUS_VERSION^^}/debian ${DEBIAN_VERSION} nginx-plus" > /etc/apt/sources.list.d/nginx-app-protect-dos.list \
96
98
&& apt-get update \
97
99
&& apt-get -y install app-protect-dos \
100
+ # temp fix for CVE-2021-43618
101
+ && apt-get install -y libgmp10 \
98
102
&& rm -rf /var/lib/apt/lists/* \
99
103
&& rm /etc/apt/sources.list.d/nginx-app-protect-dos.list
100
104
@@ -131,6 +135,8 @@ LABEL name="NGINX Ingress Controller" \
131
135
io.openshift.tags="nginx,ingress-controller,ingress,controller,kubernetes,openshift"
132
136
133
137
RUN dnf --nodocs install -y shadow-utils ca-certificates \
138
+ # temp fix for CVE-2022-0778
139
+ && dnf --nodocs upgrade -y openssl-libs \
134
140
&& groupadd --system --gid 101 nginx \
135
141
&& useradd --system --gid nginx --no-create-home --home-dir /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx
136
142
0 commit comments