From 25066e5757fa99d967711ad85e40964850019212 Mon Sep 17 00:00:00 2001 From: Gabor Roczei Date: Thu, 15 Aug 2024 13:28:18 +0800 Subject: [PATCH] [SPARK-45590][BUILD] Upgrade okio to 1.17.6 from 1.15.0 ### What changes were proposed in this pull request? This PR aims to upgrade `okio` from 1.15.0 to 1.17.6. ### Why are the changes needed? Okio 1.15.0 is vulnerable due to CVE-2023-3635, details: https://nvd.nist.gov/vuln/detail/CVE-2023-3635 Previous attempts to fix this security issue: Update okio to version 1.17.6 #5587: https://github.com/fabric8io/kubernetes-client/pull/5587 Followup to Update okio to version 1.17.6 #5935: https://github.com/fabric8io/kubernetes-client/pull/5935 Unfortunately it is still using 1.15.0: https://github.com/apache/spark/blob/v4.0.0-preview1/dev/deps/spark-deps-hadoop-3-hive-2.3#L227 https://github.com/apache/spark/blob/v3.5.2/dev/deps/spark-deps-hadoop-3-hive-2.3#L210 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #47758 from roczei/SPARK-45590. Authored-by: Gabor Roczei Signed-off-by: Kent Yao --- dev/deps/spark-deps-hadoop-3-hive-2.3 | 2 +- pom.xml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dev/deps/spark-deps-hadoop-3-hive-2.3 b/dev/deps/spark-deps-hadoop-3-hive-2.3 index a0febbfc721ab..d7bd97b9f8b46 100644 --- a/dev/deps/spark-deps-hadoop-3-hive-2.3 +++ b/dev/deps/spark-deps-hadoop-3-hive-2.3 @@ -224,7 +224,7 @@ netty-transport-native-unix-common/4.1.110.Final//netty-transport-native-unix-co netty-transport/4.1.110.Final//netty-transport-4.1.110.Final.jar objenesis/3.3//objenesis-3.3.jar okhttp/3.12.12//okhttp-3.12.12.jar -okio/1.15.0//okio-1.15.0.jar +okio/1.17.6//okio-1.17.6.jar opencsv/2.3//opencsv-2.3.jar opentracing-api/0.33.0//opentracing-api-0.33.0.jar opentracing-noop/0.33.0//opentracing-noop-0.33.0.jar diff --git a/pom.xml b/pom.xml index 6b2e8b3482d01..3b2e60ebcd783 100644 --- a/pom.xml +++ b/pom.xml @@ -231,6 +231,7 @@ org.fusesource.leveldbjni 6.13.2 + 1.17.6 ${java.home} @@ -2872,6 +2873,11 @@ javax.servlet-api ${javaxservlet.version} + + com.squareup.okio + okio + ${okio.version} +