Skip to content

Commit 82591c6

Browse files
authored
fix(druid): CVE-2023-34455 (#935)
* 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
1 parent dfe4c27 commit 82591c6

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file.
2323

2424
### Fixed
2525

26+
- druid: Fix CVE-2023-34455 in Druid `30.0.0` by deleting a dependency ([#935]).
2627
- hadoop: Fix the JMX exporter configuration for metrics suffixed with
2728
`_total`, `_info` and `_created` ([#962]).
2829

@@ -31,6 +32,7 @@ All notable changes to this project will be documented in this file.
3132
[#943]: https://github.com/stackabletech/docker-images/pull/943
3233
[#958]: https://github.com/stackabletech/docker-images/pull/958
3334
[#959]: https://github.com/stackabletech/docker-images/pull/959
35+
[#935]: https://github.com/stackabletech/docker-images/pull/935
3436
[#962]: https://github.com/stackabletech/docker-images/pull/962
3537
[#980]: https://github.com/stackabletech/docker-images/pull/980
3638
[#981]: https://github.com/stackabletech/docker-images/pull/981
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Fix CVE-2023-34455
2+
see https://github.com/stackabletech/vulnerabilities/issues/558
3+
4+
At the end of build process, Druid downloads dependencies directly from a remote
5+
Maven repository ignoring existing patches that have been applyed locally.
6+
These dependencies include all transitive dependencies too.
7+
The hadoop client depends on a vulnerable version of the snappy library which
8+
is then also downloaded even though a newer version is already on the system.
9+
10+
This patch removes the vulnerable jars.
11+
12+
diff --git a/distribution/pom.xml b/distribution/pom.xml
13+
index d5918710ef..2d5bfc6ab4 100644
14+
--- a/distribution/pom.xml
15+
+++ b/distribution/pom.xml
16+
@@ -259,6 +259,20 @@
17+
</arguments>
18+
</configuration>
19+
</execution>
20+
+ <execution>
21+
+ <id>fix-cve-2023-34455-remove-snappy</id>
22+
+ <phase>package</phase>
23+
+ <goals>
24+
+ <goal>exec</goal>
25+
+ </goals>
26+
+ <configuration>
27+
+ <executable>/usr/bin/rm</executable>
28+
+ <arguments>
29+
+ <argument>${project.build.directory}/hadoop-dependencies/hadoop-client-api/3.3.6/snappy-java-1.1.8.2.jar</argument>
30+
+ <argument>${project.build.directory}/hadoop-dependencies/hadoop-client-runtime/3.3.6/snappy-java-1.1.8.2.jar</argument>
31+
+ </arguments>
32+
+ </configuration>
33+
+ </execution>
34+
</executions>
35+
</plugin>
36+
<plugin>

0 commit comments

Comments
 (0)