Skip to content

Commit 6d07aa4

Browse files
committed
fix (nifi): CVE-2024-36114
1 parent 82fb887 commit 6d07aa4

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ All notable changes to this project will be documented in this file.
6363

6464
- hbase: link to phoenix server jar ([#811]).
6565
- trino: Correctly report Trino version ([#881]).
66+
- nifi: Fix CVE-2024-36114 in Hive `1.27.0` and `2.0.0` by upgrading a dependency. ([#xxx]).
6667

6768
[#783]: https://github.com/stackabletech/docker-images/pull/783
6869
[#797]: https://github.com/stackabletech/docker-images/pull/797
@@ -106,6 +107,7 @@ All notable changes to this project will be documented in this file.
106107
[#914]: https://github.com/stackabletech/docker-images/pull/914
107108
[#917]: https://github.com/stackabletech/docker-images/pull/917
108109
[#920]: https://github.com/stackabletech/docker-images/pull/920
110+
[#xxx]: https://github.com/stackabletech/docker-images/pull/xxx
109111

110112
## [24.7.0] - 2024-07-24
111113

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/pom.xml b/pom.xml
22+
index 0437c2b949..1a06052b3b 100644
23+
--- a/pom.xml
24+
+++ b/pom.xml
25+
@@ -155,6 +155,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+
<!-- The following dependency management entries exist because these are jars
36+
that live in the top-level lib directory and will be present in the parent-first
37+
classloading of all child nars. Therefore we dont want child nars using different
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/nifi-assembly/pom.xml b/nifi-assembly/pom.xml
22+
index e980e507c6..01eb16795d 100644
23+
--- a/nifi-assembly/pom.xml
24+
+++ b/nifi-assembly/pom.xml
25+
@@ -98,6 +98,12 @@ language governing permissions and limitations under the License. -->
26+
</plugins>
27+
</build>
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>ch.qos.logback</groupId>
37+
<artifactId>logback-classic</artifactId>

0 commit comments

Comments
 (0)