Skip to content

Exclude lz4 transitive dependency #2300

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

Merged
merged 3 commits into from
May 2, 2025

Conversation

breedx-splk
Copy link
Contributor

@breedx-splk breedx-splk commented May 2, 2025

We are currently behind a major version of flightrecorder for some reason. Not sure why renovate didn't pick it up (but maybe just because it's a major). UPDATE: as @laurit pointed out, the latest major version is not compatible with java8, which unfortunately, we still have to support.

Furthermore, we have a transitive dependency on lz4-java which contains binary libs (.so and .dynlib files), and there's a long-standing CVE that triggers on those binaries. The transitive dependency comes in through jmc via flightrecorder. Unfortunately, even this new/latest version of flightrecorder still depends on an old/vulnerable version of lz4-java (see here).

See also the discussions in the lz4-java issues #217 and #221. It looks like lz4-java is probably abandonware at this point, and jmc will either fork it or drop the dependency.

In the meantime, there's really no need for us to include the lz4 dependency at all -- we don't use lz4 compressed flightrecorder files. I tested JFR-based profiling with this latest setting and confirmed that the the telemetry looks good and that the lz4 classes and binaries no longer show up in our distro.

@breedx-splk breedx-splk requested review from a team as code owners May 2, 2025 16:07
@laurit
Copy link
Collaborator

laurit commented May 2, 2025

As far as I remember the latest flightrecorder jar does not work with java8.

@breedx-splk
Copy link
Contributor Author

As far as I remember the latest flightrecorder jar does not work with java8.

Aw yes, I think you're right. Let me just drop the transitive dep then. I'll just reuse this PR.

@breedx-splk breedx-splk changed the title Update flightrecorder dependency Exclude lz4 transitive dependency May 2, 2025
@breedx-splk breedx-splk requested a review from a team as a code owner May 2, 2025 17:32
@breedx-splk breedx-splk merged commit 5727e45 into signalfx:main May 2, 2025
26 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants