From ecc0becad10b96ef1007c31c1ad613a1496175b0 Mon Sep 17 00:00:00 2001 From: Akanksha Kedia Date: Wed, 9 Sep 2026 17:45:51 +0530 Subject: [PATCH 1/2] HIVE-30027: Upgrade avro from 1.12.0 to 1.12.2 Avro 1.12.2 fixes a CVE by rejecting unrestricted deserialization of arbitrary classes as SpecificRecord unless explicitly trusted via org.apache.avro.SERIALIZABLE_CLASSES/SERIALIZABLE_PACKAGES. AvroBytesConverterTest's SpecificDatumWriter/Reader usage now needs its fixture class trusted explicitly; this is declared as a JVM system property via kafka-handler/pom.xml's maven-surefire-plugin systemPropertyVariables so it's present from fork startup. --- kafka-handler/pom.xml | 14 ++++++++++++++ pom.xml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/kafka-handler/pom.xml b/kafka-handler/pom.xml index 0a4527b6773d..dc759aa0d14d 100644 --- a/kafka-handler/pom.xml +++ b/kafka-handler/pom.xml @@ -227,6 +227,20 @@ org.apache.maven.plugins maven-jar-plugin + + org.apache.maven.plugins + maven-surefire-plugin + + + + org.apache.hadoop.hive.kafka.SimpleRecord + + + diff --git a/pom.xml b/pom.xml index 657b149fbe94..a5bbfe4e544a 100644 --- a/pom.xml +++ b/pom.xml @@ -114,7 +114,7 @@ 4.9.3 2.0.0-M24 - 1.12.0 + 1.12.2 4.2.1 12.22.0 1.84 From b4e0b7b83fc060a9f677436cb86389c27e10ac44 Mon Sep 17 00:00:00 2001 From: Akanksha Kedia Date: Fri, 11 Sep 2026 17:33:42 +0530 Subject: [PATCH 2/2] HIVE-30027: Trust Wikipedia SpecificRecord fixture in itests/qtest kafka driver TestMiniHiveKafkaCliDriver (kafka_storage_handler.q) produces its test data via QTestMiniClusters#getAvroRows(), which builds a SpecificDatumWriter from Wikipedia's schema. Avro 1.12.x's ClassSecurityValidator forbids that class resolution unless explicitly trusted, same as the kafka-handler unit test fix in this PR. Declared via maven-surefire-plugin systemPropertyVariables so it's present from JVM fork startup, not via @BeforeClass (already shown unreliable for this exact failure mode earlier in this PR). --- itests/qtest/pom.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/itests/qtest/pom.xml b/itests/qtest/pom.xml index dbb16c7b02e9..aeedbc67b19d 100644 --- a/itests/qtest/pom.xml +++ b/itests/qtest/pom.xml @@ -613,6 +613,14 @@ ${test.conf.dir} ${basedir}/${hive.path.to.root}/conf + + + org.apache.hive.kafka.Wikipedia +