Skip to content

Commit c7ac16e

Browse files
committed
Exclude Log4j to mitigate JMSAppender RCE vulnerability (CVE-2021-4104)
1 parent 16c7b41 commit c7ac16e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,20 @@ dependencies {
130130
strictly '3.5.2'
131131
} // Cannot upgrade to '3.5.24'
132132
transitive = true
133+
exclude group: 'log4j', module: 'log4j'
133134
}
134135
implementation('com.atlassian.security:atlassian-security:3.2.14') {
135136
transitive = true
137+
exclude group: 'log4j', module: 'log4j'
136138
}
137139
implementation('com.atlassian.security:atlassian-cookie-tools:3.2.14') {
138140
transitive = true
141+
exclude group: 'log4j', module: 'log4j'
139142
}
140143
implementation('javax.validation:validation-api:2.0.1.Final')
141-
implementation('com.atlassian.crowd:crowd-integration-springsecurity:5.1.3')
144+
implementation('com.atlassian.crowd:crowd-integration-springsecurity:5.1.3') {
145+
exclude group: 'log4j', module: 'log4j'
146+
}
142147
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
143148
implementation group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '2.3.1'
144149
implementation group: 'xerces', name: 'xercesImpl', version: '2.9.1'
@@ -224,6 +229,8 @@ configurations.all {
224229
it.useTarget 'com.atlassian.platform:platform:3.5.24'
225230
}
226231
}
232+
// CVE-2021-4104: Exclude Log4j 1.2 to prevent JMSAppender RCE vulnerability
233+
exclude group: 'log4j', module: 'log4j'
227234
}
228235

229236
// configurations.implementation {

0 commit comments

Comments
 (0)