Skip to content

Commit ec343c0

Browse files
authored
fix (hive): CVE-2024-36114 (#922)
* fix (hive): CVE-2024-36114 * adapt changelog * fix changelog
1 parent 085fd16 commit ec343c0

File tree

4 files changed

+77
-0
lines changed

4 files changed

+77
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ All notable changes to this project will be documented in this file.
6666
- spark: Fix CVE-2024-36114 in Spark 3.5.1 by upgrading a dependency.
6767
Spark 3.5.2 is not affected. ([#921])
6868
- trino: Correctly report Trino version ([#881]).
69+
- hive: Fix CVE-2024-36114 in Hive `3.1.3` and `4.0.0` by upgrading a dependency. ([#922]).
6970
- hbase: Fix CVE-2024-36114 in HBase `2.6.0` by upgrading a dependency. ([#925]).
7071
- druid: Fix CVE-2024-36114 in Druid `26.0.0` and `30.0.0` by upgrading a dependency ([#926]).
7172

@@ -113,6 +114,7 @@ All notable changes to this project will be documented in this file.
113114
[#919]: https://github.com/stackabletech/docker-images/pull/919
114115
[#920]: https://github.com/stackabletech/docker-images/pull/920
115116
[#921]: https://github.com/stackabletech/docker-images/pull/921
117+
[#922]: https://github.com/stackabletech/docker-images/pull/922
116118
[#925]: https://github.com/stackabletech/docker-images/pull/925
117119
[#926]: https://github.com/stackabletech/docker-images/pull/926
118120

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Fix CVE-2024-36114
2+
see https://github.com/stackabletech/vulnerabilities/issues/834
3+
4+
Aircompressor is a library with ports of the Snappy, LZO, LZ4, and
5+
Zstandard compression algorithms to Java. All decompressor
6+
implementations of Aircompressor (LZ4, LZO, Snappy, Zstandard) can crash
7+
the JVM for certain input, and in some cases also leak the content of
8+
other memory of the Java process (which could contain sensitive
9+
information). When decompressing certain data, the decompressors try to
10+
access memory outside the bounds of the given byte arrays or byte
11+
buffers. Because Aircompressor uses the JDK class sun.misc.Unsafe to
12+
speed up memory access, no additional bounds checks are performed and
13+
this has similar security consequences as out-of-bounds access in C or
14+
C++, namely it can lead to non-deterministic behavior or crash the JVM.
15+
Users should update to Aircompressor 0.27 or newer where these issues
16+
have been fixed. When decompressing data from untrusted users, this can
17+
be exploited for a denial-of-service attack by crashing the JVM, or to
18+
leak other sensitive information from the Java process. There are no
19+
known workarounds for this issue.
20+
21+
diff --git a/standalone-metastore/pom.xml b/standalone-metastore/pom.xml
22+
index e36f1e64f0..7758f71859 100644
23+
--- a/standalone-metastore/pom.xml
24+
+++ b/standalone-metastore/pom.xml
25+
@@ -93,6 +93,12 @@
26+
</properties>
27+
28+
<dependencies>
29+
+ <!-- Mitigate CVE-2024-36114: See https://github.com/stackabletech/vulnerabilities/issues/834 -->
30+
+ <dependency>
31+
+ <groupId>io.airlift</groupId>
32+
+ <artifactId>aircompressor</artifactId>
33+
+ <version>0.27</version>
34+
+ </dependency>
35+
<dependency>
36+
<groupId>org.apache.orc</groupId>
37+
<artifactId>orc-core</artifactId>

hive/stackable/patches/3.1.3/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
09-maven-warning.patch
1111
10-postgres-driver.patch
1212
11-cyclonedx-plugin.patch
13+
12-CVE-2024-36114-bump-aircompressor-0-27.patch
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Fix CVE-2024-36114
2+
see https://github.com/stackabletech/vulnerabilities/issues/834
3+
4+
Aircompressor is a library with ports of the Snappy, LZO, LZ4, and
5+
Zstandard compression algorithms to Java. All decompressor
6+
implementations of Aircompressor (LZ4, LZO, Snappy, Zstandard) can crash
7+
the JVM for certain input, and in some cases also leak the content of
8+
other memory of the Java process (which could contain sensitive
9+
information). When decompressing certain data, the decompressors try to
10+
access memory outside the bounds of the given byte arrays or byte
11+
buffers. Because Aircompressor uses the JDK class sun.misc.Unsafe to
12+
speed up memory access, no additional bounds checks are performed and
13+
this has similar security consequences as out-of-bounds access in C or
14+
C++, namely it can lead to non-deterministic behavior or crash the JVM.
15+
Users should update to Aircompressor 0.27 or newer where these issues
16+
have been fixed. When decompressing data from untrusted users, this can
17+
be exploited for a denial-of-service attack by crashing the JVM, or to
18+
leak other sensitive information from the Java process. There are no
19+
known workarounds for this issue.
20+
21+
diff --git a/standalone-metastore/pom.xml b/standalone-metastore/pom.xml
22+
index 28ac5ceb65..8f2edd7b8e 100644
23+
--- a/standalone-metastore/pom.xml
24+
+++ b/standalone-metastore/pom.xml
25+
@@ -120,6 +120,12 @@
26+
</properties>
27+
<dependencyManagement>
28+
<dependencies>
29+
+ <!-- Mitigate CVE-2024-36114: See https://github.com/stackabletech/vulnerabilities/issues/834 -->
30+
+ <dependency>
31+
+ <groupId>io.airlift</groupId>
32+
+ <artifactId>aircompressor</artifactId>
33+
+ <version>0.27</version>
34+
+ </dependency>
35+
<dependency>
36+
<groupId>org.apache.orc</groupId>
37+
<artifactId>orc-core</artifactId>

0 commit comments

Comments
 (0)