Skip to content

Commit 0cd40c0

Browse files
committed
log4j upgrade to 2.25.3 for CVE-2025-68161
1 parent 5297eae commit 0cd40c0

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

g11n-ws/build.gradle

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ subprojects{
6767
snakeyam="2.0"
6868
jjwtVersion="0.9.1"
6969
hibernateJpa21Api = "1.0.2.Final"
70-
log4j2Version="2.18.0"
70+
log4j2Version="2.25.3"
7171
slf4jVersion="1.7.32"
7272
esapiVersion="2.6.2.0"
7373

@@ -87,4 +87,20 @@ subprojects{
8787
tasks.withType(JavaCompile) {
8888
options.encoding = "UTF-8"
8989
}
90+
91+
// CVE-2025-68161: force log4j2 >= 2.25.3 via Spring dependency-management plugin BOM override
92+
plugins.withId('io.spring.dependency-management') {
93+
dependencyManagement {
94+
dependencies {
95+
dependencySet(group: 'org.apache.logging.log4j', version: "$log4j2Version") {
96+
entry 'log4j-api'
97+
entry 'log4j-core'
98+
entry 'log4j-slf4j2-impl'
99+
entry 'log4j-jul'
100+
entry 'log4j-web'
101+
entry 'log4j-layout-template-json'
102+
}
103+
}
104+
}
105+
}
90106
}

0 commit comments

Comments
 (0)