-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix (hive): CVE-2024-36114 * adapt changelog * fix changelog
- Loading branch information
1 parent
085fd16
commit ec343c0
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
hive/stackable/patches/3.1.3/12-CVE-2024-36114-bump-aircompressor-0-27.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Fix CVE-2024-36114 | ||
see https://github.com/stackabletech/vulnerabilities/issues/834 | ||
|
||
Aircompressor is a library with ports of the Snappy, LZO, LZ4, and | ||
Zstandard compression algorithms to Java. All decompressor | ||
implementations of Aircompressor (LZ4, LZO, Snappy, Zstandard) can crash | ||
the JVM for certain input, and in some cases also leak the content of | ||
other memory of the Java process (which could contain sensitive | ||
information). When decompressing certain data, the decompressors try to | ||
access memory outside the bounds of the given byte arrays or byte | ||
buffers. Because Aircompressor uses the JDK class sun.misc.Unsafe to | ||
speed up memory access, no additional bounds checks are performed and | ||
this has similar security consequences as out-of-bounds access in C or | ||
C++, namely it can lead to non-deterministic behavior or crash the JVM. | ||
Users should update to Aircompressor 0.27 or newer where these issues | ||
have been fixed. When decompressing data from untrusted users, this can | ||
be exploited for a denial-of-service attack by crashing the JVM, or to | ||
leak other sensitive information from the Java process. There are no | ||
known workarounds for this issue. | ||
|
||
diff --git a/standalone-metastore/pom.xml b/standalone-metastore/pom.xml | ||
index e36f1e64f0..7758f71859 100644 | ||
--- a/standalone-metastore/pom.xml | ||
+++ b/standalone-metastore/pom.xml | ||
@@ -93,6 +93,12 @@ | ||
</properties> | ||
|
||
<dependencies> | ||
+ <!-- Mitigate CVE-2024-36114: See https://github.com/stackabletech/vulnerabilities/issues/834 --> | ||
+ <dependency> | ||
+ <groupId>io.airlift</groupId> | ||
+ <artifactId>aircompressor</artifactId> | ||
+ <version>0.27</version> | ||
+ </dependency> | ||
<dependency> | ||
<groupId>org.apache.orc</groupId> | ||
<artifactId>orc-core</artifactId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
hive/stackable/patches/4.0.0/04-CVE-2024-36114-bump-aircompressor-0-27.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Fix CVE-2024-36114 | ||
see https://github.com/stackabletech/vulnerabilities/issues/834 | ||
|
||
Aircompressor is a library with ports of the Snappy, LZO, LZ4, and | ||
Zstandard compression algorithms to Java. All decompressor | ||
implementations of Aircompressor (LZ4, LZO, Snappy, Zstandard) can crash | ||
the JVM for certain input, and in some cases also leak the content of | ||
other memory of the Java process (which could contain sensitive | ||
information). When decompressing certain data, the decompressors try to | ||
access memory outside the bounds of the given byte arrays or byte | ||
buffers. Because Aircompressor uses the JDK class sun.misc.Unsafe to | ||
speed up memory access, no additional bounds checks are performed and | ||
this has similar security consequences as out-of-bounds access in C or | ||
C++, namely it can lead to non-deterministic behavior or crash the JVM. | ||
Users should update to Aircompressor 0.27 or newer where these issues | ||
have been fixed. When decompressing data from untrusted users, this can | ||
be exploited for a denial-of-service attack by crashing the JVM, or to | ||
leak other sensitive information from the Java process. There are no | ||
known workarounds for this issue. | ||
|
||
diff --git a/standalone-metastore/pom.xml b/standalone-metastore/pom.xml | ||
index 28ac5ceb65..8f2edd7b8e 100644 | ||
--- a/standalone-metastore/pom.xml | ||
+++ b/standalone-metastore/pom.xml | ||
@@ -120,6 +120,12 @@ | ||
</properties> | ||
<dependencyManagement> | ||
<dependencies> | ||
+ <!-- Mitigate CVE-2024-36114: See https://github.com/stackabletech/vulnerabilities/issues/834 --> | ||
+ <dependency> | ||
+ <groupId>io.airlift</groupId> | ||
+ <artifactId>aircompressor</artifactId> | ||
+ <version>0.27</version> | ||
+ </dependency> | ||
<dependency> | ||
<groupId>org.apache.orc</groupId> | ||
<artifactId>orc-core</artifactId> |