-
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(druid): CVE-2023-34455 * add doc to patch file * update changelog * fix markdown lint * revert prometheus patch from main * added new patch file * fix copy&paste * put the execution in the "dist" profile
- Loading branch information
Showing
2 changed files
with
38 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
36 changes: 36 additions & 0 deletions
36
druid/stackable/patches/30.0.0/10-cve-2023-34455-rm-snappy.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,36 @@ | ||
Fix CVE-2023-34455 | ||
see https://github.com/stackabletech/vulnerabilities/issues/558 | ||
|
||
At the end of build process, Druid downloads dependencies directly from a remote | ||
Maven repository ignoring existing patches that have been applyed locally. | ||
These dependencies include all transitive dependencies too. | ||
The hadoop client depends on a vulnerable version of the snappy library which | ||
is then also downloaded even though a newer version is already on the system. | ||
|
||
This patch removes the vulnerable jars. | ||
|
||
diff --git a/distribution/pom.xml b/distribution/pom.xml | ||
index d5918710ef..2d5bfc6ab4 100644 | ||
--- a/distribution/pom.xml | ||
+++ b/distribution/pom.xml | ||
@@ -259,6 +259,20 @@ | ||
</arguments> | ||
</configuration> | ||
</execution> | ||
+ <execution> | ||
+ <id>fix-cve-2023-34455-remove-snappy</id> | ||
+ <phase>package</phase> | ||
+ <goals> | ||
+ <goal>exec</goal> | ||
+ </goals> | ||
+ <configuration> | ||
+ <executable>/usr/bin/rm</executable> | ||
+ <arguments> | ||
+ <argument>${project.build.directory}/hadoop-dependencies/hadoop-client-api/3.3.6/snappy-java-1.1.8.2.jar</argument> | ||
+ <argument>${project.build.directory}/hadoop-dependencies/hadoop-client-runtime/3.3.6/snappy-java-1.1.8.2.jar</argument> | ||
+ </arguments> | ||
+ </configuration> | ||
+ </execution> | ||
</executions> | ||
</plugin> | ||
<plugin> |