-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(druid): CVE-2023-34455 #935
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I don't think this'll work properly as it will not be reflected properly in the SBOMs. Usually you'd do this with exclusions in the Maven POM file. Did you try that? |
LGTM though. The broken jar is not listed in the SBOM file.
Also Trivy doesn't report the CVE anymore after building the image.
The Druid pom file already contains the newer (1.1.10.4) snappy version. The vulnerable version is pulled in by the
We would need a patched version of the Anyway, after that step, the following snappy versions are pulled in:
This PR adds another execution step after the Related to this, Druid has jar deduplication script they use in their Dockerfile. We should use that to further reduce the final image size. |
Yeah I think in general @lfrancke is right, but this case is special, because these dependencies are not directly pulled in by Maven. They are not added to the SBOM that Maven generates because Maven does not seem to be aware of them. They are currently added to the final SBOM of the container image through the JAR cataloger of Syft (it scans the filesystem after the image is built and detects the JAR files). So even in the current Druid 30 image, they are not in the But yes, we could think about pulling in Hadoop 3.4.0 or 3.4.1 instead of 3.3.6 to get rid of this snappy version and some other vulnerable dependencies as well. Hadoop 3.4.1 depends on snappy 1.1.10.4 for example, the same version that Druid depends on. |
Description
See: https://github.com/stackabletech/vulnerabilities/issues/558
Definition of Done Checklist
Tasks
TIP: Running integration tests with a new product image
The image can be built and uploaded to the kind cluster with the following commands:
See the output of
bake
to retrieve the image tag for<image-tagged-with-the-major-version>
.