Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

Commit 6342e64

Browse files
authored
Updated log4j to 2.17.0 to fix CVE-2021-45105. (#949)
Signed-off-by: David Venable <[email protected]>
1 parent 6cf86e1 commit 6342e64

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ subprojects {
1414
sourceCompatibility = '1.8'
1515
dependencies {
1616
implementation "com.google.guava:guava:29.0-jre"
17-
implementation 'org.apache.logging.log4j:log4j-core:2.16.0'
17+
implementation 'org.apache.logging.log4j:log4j-core:2.17.0'
1818
implementation "org.slf4j:slf4j-api:1.7.30"
19-
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.16.0'
19+
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.0'
2020
testImplementation("junit:junit:4.13") {
2121
exclude group: 'org.hamcrest' // workaround for jarHell
2222
}
2323
constraints {
2424
implementation('org.apache.logging.log4j:log4j-core') {
2525
version {
26-
require '2.16.0'
26+
require '2.17.0'
2727
}
28-
because 'Log4j 2.16.0 fixes CVE-2021-44228 and CVE-2021-45046'
28+
because 'Log4j 2.17.0 fixes CVE-2021-44228, CVE-2021-45046, and CVE-2021-45105'
2929
}
30-
}
31-
implementation('org.apache.logging.log4j:log4j-api') {
32-
version {
33-
require '2.16.0'
30+
implementation('org.apache.logging.log4j:log4j-api') {
31+
version {
32+
require '2.17.0'
33+
}
34+
because 'the build fails if the Log4j API is not update along with log4j-core'
3435
}
35-
because 'the build fails if the Log4j API is not update along with log4j-core'
3636
}
3737
}
3838
build.dependsOn test

data-prepper-plugins/elasticsearch/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ configurations.all {
6767
force 'com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.12.3'
6868
force 'junit:junit:4.13'
6969
force "org.slf4j:slf4j-api:1.7.30"
70-
force 'org.apache.logging.log4j:log4j-api:2.16.0'
71-
force 'org.apache.logging.log4j:log4j-core:2.16.0'
70+
force 'org.apache.logging.log4j:log4j-api:2.17.0'
71+
force 'org.apache.logging.log4j:log4j-core:2.17.0'
7272
}
7373
}
7474

0 commit comments

Comments
 (0)