Skip to content

Commit

Permalink
fix (nifi): CVE-2024-36114 (#924)
Browse files Browse the repository at this point in the history
* fix (nifi): CVE-2024-36114

* adapted changelog

* fix changelog
  • Loading branch information
maltesander authored Nov 12, 2024
1 parent ec343c0 commit 71a2a84
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ All notable changes to this project will be documented in this file.
Spark 3.5.2 is not affected. ([#921])
- trino: Correctly report Trino version ([#881]).
- hive: Fix CVE-2024-36114 in Hive `3.1.3` and `4.0.0` by upgrading a dependency. ([#922]).
- nifi: Fix CVE-2024-36114 in NiFi `1.27.0` and `2.0.0` by upgrading a dependency. ([#924]).
- hbase: Fix CVE-2024-36114 in HBase `2.6.0` by upgrading a dependency. ([#925]).
- druid: Fix CVE-2024-36114 in Druid `26.0.0` and `30.0.0` by upgrading a dependency ([#926]).

Expand Down Expand Up @@ -115,6 +116,7 @@ All notable changes to this project will be documented in this file.
[#920]: https://github.com/stackabletech/docker-images/pull/920
[#921]: https://github.com/stackabletech/docker-images/pull/921
[#922]: https://github.com/stackabletech/docker-images/pull/922
[#924]: https://github.com/stackabletech/docker-images/pull/924
[#925]: https://github.com/stackabletech/docker-images/pull/925
[#926]: https://github.com/stackabletech/docker-images/pull/926

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

0 comments on commit 71a2a84

Please sign in to comment.