KAFKA-19951: Update lz4 dependency version for CVE-2025-12183 & CVE-2025-66566#21035
KAFKA-19951: Update lz4 dependency version for CVE-2025-12183 & CVE-2025-66566#21035mimaison merged 9 commits intoapache:trunkfrom
Conversation
Updated lz4 dependency version from 1.8.0 to 1.8.1. For https://nvd.nist.gov/vuln/detail/CVE-2025-12183
|
Thanks for the patch. Could you also update |
|
@DL1231 thank you, updated license binary, do you know how |
|
I linked the PR to KAFKA-19951. Regarding the compression level, it's explained in |
|
Also there's still a build issue: |
It looks like there was a recent change to discontinue https://github.com/lz4/lz4-java, in favor of community fork https://github.com/yawkat/lz4-java . I'll try updating to new GAV |
|
Maintainer here. Interesting, did you see that error when depending on org.lz4:lz4-java:1.8.1 directly, without any reference to at.yawk.lz4? Maybe there's something wrong with the gradle capability metadata |
|
Looks like max compression level is unchanged at |
Yeah, had to switch to your gav for it to work (I'm just a random person not affil with apache): 51c520e |
Simple example demonstrating the issue mentioned by @mimaison: If only There might be an issue with the capability configuration together with the relocation settings, which could be the reason for the problem. |
|
@mjschwaiger I made a test case here: https://github.com/yawkat/test-case-gradle-rename-capability I think it's a gradle bug, I've asked on the gradle community slack about it. |
|
@mimaison do you have time to take a look at this? |
|
BTW: If the Java project is discontinued, I think it would be a good idea to get rid of the library. Not sure where I could raise this question as an issue. |
I recommend KAFKA-17301 for raising this issue 😄 |
gradle/dependencies.gradle
Outdated
| lz4: "1.8.0", | ||
| // https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/record/CompressionType.java#L73-L74 | ||
| // https://github.com/yawkat/lz4-java/blob/main/src/java/net/jpountz/lz4/LZ4Constants.java#L23-L24 | ||
| lz4: "1.8.1", |
There was a problem hiding this comment.
Should we directly bump to 1.10.0?
|
I approved your account request and assigned KAFKA-19951 to you. Thanks! |
|
when the release version will be released ? |
…025-66566 (apache#21035) Updated lz4 dependency version from 1.8.0 to 1.10.1 ## CVE-2025-12183 https://nvd.nist.gov/vuln/detail/CVE-2025-12183 ## CVE-2025-66566 https://nvd.nist.gov/vuln/detail/CVE-2025-66566 ## Releases https://github.com/yawkat/lz4-java/releases/tag/v1.8.1 https://github.com/yawkat/lz4-java/releases/tag/v1.10.0 https://github.com/yawkat/lz4-java/releases/tag/v1.10.1 Reviewers: Gaurav Narula <gaurav_narula2@apple.com>, Lan Ding <isDing_L@163.com>, Chia-Ping Tsai <chia7712@gmail.com>, Mickael Maison <mimaison@apache.org>, PoAn Yang <payang@apache.org> --------- Co-authored-by: Erik Anderson <erik@Eriks-MacBook-Air-M2.local> Co-authored-by: Chia-Ping Tsai <chia7712@gmail.com> Co-authored-by: Mickael Maison <mickael.maison@gmail.com>
I'm exactly facing this, struggling to switch this dependency with the new group. But with the gradle capability feature, it works when i define like this: But in my case the problem is, all my consumers of my internal framework (which uses above kafka-clients) are forced to define above logic to make it work, which i didnt like. Hope in newer versions of kafka-clients, they update their dependency graph with new group. |
They already did: #21035 <-- this PR |
Oh yeah.. missed reading entire thread.. but looks like 3.9.2 is not yet released :) |
It's currently in the oven! Stay tuned 😄 |
|
Let’s just hope it’s baking nicely and not getting a little too crispy 😄 |
|
Sorry to be pushy, but when can we expect a new version of 3.9.x with this fix? People in my organisation are panicking as this vulnerability has a high score. |
Definitely. We understand the urgency. We are currently preparing the 3.9.2 RC0, and I will share the release discussion link here as soon as it is ready |
|
Currently, most of 3.9.2-rc0 artifacts are ready. I'm waiting for apache/kafka-native:3.9.2-rc0 image (https://github.com/apache/kafka/actions/runs/20998197324). I will start the vote thread after it's ready. Thanks. |
|
3.9.2-rc0 vote thread: https://lists.apache.org/thread/t83xx0f4bfo160zhnnh885qh27o494dh |
|
I still dont see 3.9.2 artifacts in maven central repo.. any idea when those will be available for public use.. |
|
@skaluva Based on release document, the rc version is not pushed to maven central repo. https://maven.apache.org/guides/development/guide-testing-releases.html |
|
21st January has passed. The RC has only received one +1 vote. Now what happens? Do we wait indefinitely until the required number of votes are cast or is there a time limit after which release will be cut anyway? |
Good point. We have been jugging between two releases lately, which is why the 3.9.2 RC is moving a bit slower. We are on it and will case the necessary votes once the validation is complete. |
|
Any update on this please? all our repositories mend scans are failing due to this and our infosec team is behind us.. :( |
Totally understand the pressure from your infosec team. The fix is nearly ready - we are waiting on the very last vote for approval. It should be moving forward very shortly |
|
BTW, it would be super helpful if you guys could join the release vote thread and help verify the RC. Even if your "+1" is non-binding, sharing your test results gives the maintainers the final confidence needed to close the vote For instance, @jiafu1115 has already helped verify the 3.9.2-RC in their environment, ensuring it does not burn out the server. If you have time, please jump in and help us cross the finish line vote thread: https://lists.apache.org/thread/t83xx0f4bfo160zhnnh885qh27o494dh |
|
When can we expect the release date of 3.9.2, how long does it usually take for the last legendary voter? |
You should consider following the email list for updates
This legendary voter could be you. For example, download the RC, test it and share feedback. It is a community effort 🚀 |
|
I think we had the legendary vote yesterday. I'm assuming now it's just pending release formalities? |
|
Yes, we have the legendary voter. At the same time, we’re investigating a patch regarding a CVE. Hopefully, this will not lead to another RC |
That's a pretty high severity CVE, thanks for the great work. We'll need to wait or the sec teams will still chase us anyways 😃 |
Not just Kafka. We're all in this burning building together. 🔥 |
|
You're welcome 🤗 |



Updated lz4 dependency version from 1.8.0 to 1.10.1
CVE-2025-12183
https://nvd.nist.gov/vuln/detail/CVE-2025-12183
CVE-2025-66566
https://nvd.nist.gov/vuln/detail/CVE-2025-66566
Releases
https://github.com/yawkat/lz4-java/releases/tag/v1.8.1
https://github.com/yawkat/lz4-java/releases/tag/v1.10.0
https://github.com/yawkat/lz4-java/releases/tag/v1.10.1
Reviewers: Gaurav Narula gaurav_narula2@apple.com, Lan Ding
isDing_L@163.com, Chia-Ping Tsai chia7712@gmail.com, Mickael Maison
mimaison@apache.org, PoAn Yang payang@apache.org