-
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 (nifi): CVE-2024-36114 * adapted changelog * fix changelog
- Loading branch information
1 parent
ec343c0
commit 71a2a84
Showing
3 changed files
with
76 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
nifi/stackable/patches/1.27.0/004-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/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 |
37 changes: 37 additions & 0 deletions
37
nifi/stackable/patches/2.0.0/004-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/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> |