From 42775f4fd8a6110eabe9e064a90e917ec8d8207b Mon Sep 17 00:00:00 2001 From: metas-jb Date: Mon, 13 Dec 2021 11:38:30 +0100 Subject: [PATCH] #75 mitigate CVE-2021-44228 in elasticsearch container --- search/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/search/Dockerfile b/search/Dockerfile index 0cc1016..19d94b0 100644 --- a/search/Dockerfile +++ b/search/Dockerfile @@ -5,6 +5,9 @@ FROM docker.elastic.co/elasticsearch/elasticsearch:7.9.3 # Also see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-dev-mode ENV discovery.type=single-node +# mitigate CVE-2021-44228 log4j2 vulnerability - http://cve.mitre.org/cgi-bin/cvename.cgi?name=2021-44228 +ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true + COPY sources/start-custom.sh /usr/local/bin/start-custom.sh RUN chmod +x /usr/local/bin/start-custom.sh