From 5c3f80bbcf0b815f34388722c75fd2b38b8215d2 Mon Sep 17 00:00:00 2001 From: Marc Hermans Date: Fri, 10 Dec 2021 11:10:26 +0100 Subject: [PATCH] [CVE-2021-44228]: Update Log4J to fix the security issue inside it (#8271) --- build.gradle | 5 +++-- src/fmllauncher/resources/log4j2.xml | 16 ++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index c91dfbe922..2c76a00cb5 100644 --- a/build.gradle +++ b/build.gradle @@ -450,8 +450,9 @@ project(':forge') { installer 'org.jline:jline:3.12.+' installer 'org.apache.maven:maven-artifact:3.6.0' installer 'net.jodah:typetools:0.8.+' - installer 'org.apache.logging.log4j:log4j-api:2.11.2' - installer 'org.apache.logging.log4j:log4j-core:2.11.2' + installer 'org.apache.logging.log4j:log4j-api:2.15.0' //TODO: Unpin in 1.18.1 or when Mojang bumps the Log4J version + installer 'org.apache.logging.log4j:log4j-core:2.15.0' //TODO: Unpin in 1.18.1 or when Mojang bumps the Log4J version + installer 'org.apache.logging.log4j:log4j-slf4j18-impl:2.15.0' //TODO: Unpin in 1.18.1 or when Mojang bumps the Log4J version installer 'net.minecrell:terminalconsoleappender:1.2.+' installer 'net.sf.jopt-simple:jopt-simple:5.0.4' fmllauncherImplementation 'com.google.guava:guava:21.0' diff --git a/src/fmllauncher/resources/log4j2.xml b/src/fmllauncher/resources/log4j2.xml index 2f417be965..b5dbbc9a7d 100644 --- a/src/fmllauncher/resources/log4j2.xml +++ b/src/fmllauncher/resources/log4j2.xml @@ -20,24 +20,24 @@ - + - - + + - + - - + + - + @@ -45,7 +45,7 @@ - +