Skip to content

Commit e4a2b54

Browse files
authored
[security] Upgrade jackson-databind to get rid of CVE-2020-36518 (#3140)
* [security] Upgrade jackson-databind to get rid of CVE-2020-36518
1 parent a75b48b commit e4a2b54

File tree

6 files changed

+14
-3
lines changed

6 files changed

+14
-3
lines changed

bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Apache Software License, Version 2.
207207

208208
- lib/com.fasterxml.jackson.core-jackson-annotations-2.13.2.jar [1]
209209
- lib/com.fasterxml.jackson.core-jackson-core-2.13.2.jar [2]
210-
- lib/com.fasterxml.jackson.core-jackson-databind-2.13.2.jar [3]
210+
- lib/com.fasterxml.jackson.core-jackson-databind-2.13.2.1.jar [3]
211211
- lib/com.google.guava-guava-31.0.1-jre.jar [4]
212212
- lib/com.google.guava-failureaccess-1.0.1.jar [4]
213213
- lib/com.google.guava-listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar [4]

bookkeeper-dist/src/main/resources/LICENSE-bkctl.bin.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Apache Software License, Version 2.
207207

208208
- lib/com.fasterxml.jackson.core-jackson-annotations-2.13.2.jar [1]
209209
- lib/com.fasterxml.jackson.core-jackson-core-2.13.2.jar [2]
210-
- lib/com.fasterxml.jackson.core-jackson-databind-2.13.2.jar [3]
210+
- lib/com.fasterxml.jackson.core-jackson-databind-2.13.2.1.jar [3]
211211
- lib/com.google.guava-guava-31.0.1-jre.jar [4]
212212
- lib/com.google.guava-failureaccess-1.0.1.jar [4]
213213
- lib/com.google.guava-listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar [4]

bookkeeper-dist/src/main/resources/LICENSE-server.bin.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Apache Software License, Version 2.
207207

208208
- lib/com.fasterxml.jackson.core-jackson-annotations-2.13.2.jar [1]
209209
- lib/com.fasterxml.jackson.core-jackson-core-2.13.2.jar [2]
210-
- lib/com.fasterxml.jackson.core-jackson-databind-2.13.2.jar [3]
210+
- lib/com.fasterxml.jackson.core-jackson-databind-2.13.2.1.jar [3]
211211
- lib/com.google.guava-guava-31.0.1-jre.jar [4]
212212
- lib/com.google.guava-failureaccess-1.0.1.jar [4]
213213
- lib/com.google.guava-listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar [4]

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ allprojects {
309309
dependencies {
310310
implementation(enforcedPlatform(depLibs.nettyBom))
311311
testImplementation depLibs.log4jSlf4jImpl
312+
implementation(enforcedPlatform(depLibs.jacksonBom))
312313
}
313314

314315
dependencies {

dependencies.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ depVersions = [
5050
hdrhistogram: "2.1.10",
5151
httpclient: "4.5.13",
5252
jackson: "2.13.2",
53+
jacksonBom: "2.13.2.20220324",
54+
jacksonDatabind: "2.13.2.1",
5355
javaxServlet: "4.0.0",
5456
javaAnnotations:"1.3.2",
5557
jcommander: "1.78",
@@ -151,6 +153,7 @@ depLibs = [
151153
},
152154
jacksonAnnotations: "com.fasterxml.jackson.core:jackson-annotations:${depVersions.jackson}",
153155
javaAnnotations: "javax.annotation:javax.annotation-api:${depVersions.javaAnnotations}",
156+
jacksonBom: "com.fasterxml.jackson:jackson-bom:${depVersions.jacksonBom}",
154157
jacksonCore: "com.fasterxml.jackson.core:jackson-core:${depVersions.jackson}",
155158
jacksonDatabind: "com.fasterxml.jackson.core:jackson-databind:${depVersions.jackson}",
156159
javaxServlet: "javax.servlet:javax.servlet-api:${depVersions.javaxServlet}",

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
<hamcrest.version>1.3</hamcrest.version>
138138
<hdrhistogram.version>2.1.10</hdrhistogram.version>
139139
<jackson.version>2.13.2</jackson.version>
140+
<jackson-databind.version>2.13.2.1</jackson-databind.version>
140141
<jcommander.version>1.78</jcommander.version>
141142
<jetty.version>9.4.43.v20210629</jetty.version>
142143
<jmh.version>1.19</jmh.version>
@@ -349,6 +350,12 @@
349350
<type>pom</type>
350351
<scope>import</scope>
351352
</dependency>
353+
354+
<dependency>
355+
<groupId>com.fasterxml.jackson.core</groupId>
356+
<artifactId>jackson-databind</artifactId>
357+
<version>${jackson-databind.version}</version>
358+
</dependency>
352359
<dependency>
353360
<groupId>javax.servlet</groupId>
354361
<artifactId>javax.servlet-api</artifactId>

0 commit comments

Comments
 (0)