You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/12/10 12:32:20 UTC

[GitHub] [hive] guptanikhil007 commented on a change in pull request #2862: HIVE-25795: [CVE-2021-44228] Update log4j2 version to 2.15.0

guptanikhil007 commented on a change in pull request #2862:
URL: https://github.com/apache/hive/pull/2862#discussion_r766641896



##########
File path: bin/hive-config.sh
##########
@@ -68,3 +68,7 @@ export HIVE_AUX_JARS_PATH=$HIVE_AUX_JARS_PATH
 
 # Default to use 256MB 
 export HADOOP_HEAPSIZE=${HADOOP_HEAPSIZE:-256}
+
+# Disable the JNDI. This feature has critical REC vulnerability.
+# when 2.x <= log4j.version <= 2.14.1
+export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Dlog4j2.formatMsgNoLookups=true"

Review comment:
       Similar HBase fix:
   https://github.com/apache/hbase/pull/3933/files
   
   The leader of knownsec 404 team (ZoomEye & SeeBug) 'Heige' have also recommend to set log4j2.formatMsgNoLookups to true
   Ref: https://www.cyberkendra.com/2021/12/worst-log4j-rce-zeroday-dropped-on.html




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org