From fb6b8c30b47ce00c3da80ce4e18ba252c0576c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Mon, 29 Nov 2021 13:33:27 +0100 Subject: [PATCH] [Security] Upgrade OkHttp3 to address CVE-2021-0341 * Upgrade OkHttp3 from 3.14.9 to 4.9.3 * Upgrade Okio to the same version of OkHttp3 4.9.3 * Override Okio transitive dependency - Kotlin stdlib - to 1.4.32 in order to address CVE-2020-29582 --- .../server/src/assemble/LICENSE.bin.txt | 14 ++++++--- pom.xml | 29 +++++++++++++++++-- pulsar-sql/pom.xml | 29 +++++++++++++++++++ 3 files changed, 66 insertions(+), 6 deletions(-) diff --git a/distribution/server/src/assemble/LICENSE.bin.txt b/distribution/server/src/assemble/LICENSE.bin.txt index 39937f22a5928..26fb21b28ec24 100644 --- a/distribution/server/src/assemble/LICENSE.bin.txt +++ b/distribution/server/src/assemble/LICENSE.bin.txt @@ -446,12 +446,18 @@ The Apache Software License, Version 2.0 * SnakeYaml -- org.yaml-snakeyaml-1.27.jar * RocksDB - org.rocksdb-rocksdbjni-6.10.2.jar * Google Error Prone Annotations - com.google.errorprone-error_prone_annotations-2.5.1.jar - * Apache Thrifth - org.apache.thrift-libthrift-0.14.2.jar + * Apache Thrift - org.apache.thrift-libthrift-0.14.2.jar * OkHttp3 - - com.squareup.okhttp3-logging-interceptor-3.14.9.jar - - com.squareup.okhttp3-okhttp-3.14.9.jar - * Okio - com.squareup.okio-okio-1.17.2.jar + - com.squareup.okhttp3-logging-interceptor-4.9.3.jar + - com.squareup.okhttp3-okhttp-4.9.3.jar + * Okio - com.squareup.okio-okio-2.8.0.jar * Javassist -- org.javassist-javassist-3.25.0-GA.jar + * Kotlin Standard Lib + - org.jetbrains.kotlin-kotlin-stdlib-1.4.32.jar + - org.jetbrains.kotlin-kotlin-stdlib-common-1.4.32.jar + - org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.4.32.jar + - org.jetbrains.kotlin-kotlin-stdlib-jdk8-1.4.32.jar + - org.jetbrains-annotations-13.0.jar * gRPC - io.grpc-grpc-all-1.33.0.jar - io.grpc-grpc-auth-1.33.0.jar diff --git a/pom.xml b/pom.xml index 634d16d8d6e41..82fc5fd1ce8a4 100644 --- a/pom.xml +++ b/pom.xml @@ -192,9 +192,11 @@ flexible messaging model and an intuitive client API. 2.0.2 4.2.0 12.0.1 - 3.14.9 + 4.9.3 - 1.17.2 + 2.8.0 + + 1.4.32 1.0 9.1.3 5.3.1 @@ -1187,12 +1189,35 @@ flexible messaging model and an intuitive client API. okhttp-urlconnection ${okhttp3.version} + + com.squareup.okhttp3 + logging-interceptor + ${okhttp3.version} + com.squareup.okio okio ${okio.version} + + org.jetbrains.kotlin + kotlin-stdlib + ${kotlin-stdlib.version} + + + org.jetbrains.kotlin + kotlin-stdlib-common + ${kotlin-stdlib.version} + + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + ${kotlin-stdlib.version} + + + diff --git a/pulsar-sql/pom.xml b/pulsar-sql/pom.xml index 89f083a58166d..3a21a9ddec0e9 100644 --- a/pulsar-sql/pom.xml +++ b/pulsar-sql/pom.xml @@ -37,6 +37,13 @@ presto-distribution + + + 3.14.9 + + 1.17.2 + + @@ -104,6 +111,28 @@ jackson-datatype-jsr310 ${jackson.version} + + + + com.squareup.okhttp3 + okhttp + ${okhttp3.version} + + + com.squareup.okhttp3 + okhttp-urlconnection + ${okhttp3.version} + + + com.squareup.okhttp3 + logging-interceptor + ${okhttp3.version} + + + com.squareup.okio + okio + ${okio.version} +