This is an automated email from the ASF dual-hosted git repository.

aber pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/cassandra-java-driver.git


The following commit(s) were added to refs/heads/4.x by this push:
     new 595cb2991 Update LZ4 and Netty dependencies for CVE response
595cb2991 is described below

commit 595cb29912dc8b55663cc13bafe3f17dc4f91ce6
Author: Abe Ratnofsky <[email protected]>
AuthorDate: Mon Dec 22 22:20:20 2025 -0800

    Update LZ4 and Netty dependencies for CVE response
    
    The primary goal here is to address CVE-2025-12183. Netty includes a
    dependency on vulnerable versions of lz4-java, so update to a fixed
    version of Netty as well. On the C* server side, we opted to move to the
    new community fork of lz4-java, so match that decision here
    (CASSANDRA-21052).
    
    patch by Abe Ratnofsky; reviewed by Francisco Guerrero for CASSJAVA-113
---
 NOTICE_binary.txt                                                   | 2 +-
 core-shaded/pom.xml                                                 | 2 +-
 core/pom.xml                                                        | 2 +-
 core/src/main/resources/reference.conf                              | 2 +-
 .../dse/driver/internal/core/insights/PlatformInfoFinderTest.java   | 2 +-
 core/src/test/resources/insights/test-dependencies.txt              | 2 +-
 integration-tests/pom.xml                                           | 2 +-
 manual/core/compression/README.md                                   | 6 +++---
 manual/core/integration/README.md                                   | 2 +-
 osgi-tests/pom.xml                                                  | 2 +-
 .../datastax/oss/driver/internal/osgi/support/BundleOptions.java    | 2 +-
 pom.xml                                                             | 6 +++---
 12 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/NOTICE_binary.txt b/NOTICE_binary.txt
index c60d8ceb2..f6f11c298 100644
--- a/NOTICE_binary.txt
+++ b/NOTICE_binary.txt
@@ -100,7 +100,7 @@ and decompression library written by Adrien Grand. It can 
be obtained at:
   * LICENSE:
     * license/LICENSE.lz4.txt (Apache License 2.0)
   * HOMEPAGE:
-    * https://github.com/jpountz/lz4-java
+    * https://github.com/yawkat/lz4-java
 
 This product optionally depends on 'lzma-java', a LZMA Java compression
 and decompression library, which can be obtained at:
diff --git a/core-shaded/pom.xml b/core-shaded/pom.xml
index 3727ab942..84cb4b153 100644
--- a/core-shaded/pom.xml
+++ b/core-shaded/pom.xml
@@ -74,7 +74,7 @@
       <optional>true</optional>
     </dependency>
     <dependency>
-      <groupId>org.lz4</groupId>
+      <groupId>at.yawk.lz4</groupId>
       <artifactId>lz4-java</artifactId>
       <optional>true</optional>
     </dependency>
diff --git a/core/pom.xml b/core/pom.xml
index 089e15cd9..8758d20d7 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -73,7 +73,7 @@
       <optional>true</optional>
     </dependency>
     <dependency>
-      <groupId>org.lz4</groupId>
+      <groupId>at.yawk.lz4</groupId>
       <artifactId>lz4-java</artifactId>
       <optional>true</optional>
     </dependency>
diff --git a/core/src/main/resources/reference.conf 
b/core/src/main/resources/reference.conf
index 741b1d976..4ae83362e 100644
--- a/core/src/main/resources/reference.conf
+++ b/core/src/main/resources/reference.conf
@@ -1114,7 +1114,7 @@ datastax-java-driver {
     # The name of the algorithm used to compress protocol frames.
     #
     # The possible values are:
-    # - lz4: requires net.jpountz.lz4:lz4 in the classpath.
+    # - lz4: requires at.yawk.lz4:lz4-java in the classpath.
     # - snappy: requires org.xerial.snappy:snappy-java in the classpath.
     # - the string "none" to indicate no compression (this is functionally 
equivalent to omitting
     #   the option).
diff --git 
a/core/src/test/java/com/datastax/dse/driver/internal/core/insights/PlatformInfoFinderTest.java
 
b/core/src/test/java/com/datastax/dse/driver/internal/core/insights/PlatformInfoFinderTest.java
index 80294ea6b..2a098363d 100644
--- 
a/core/src/test/java/com/datastax/dse/driver/internal/core/insights/PlatformInfoFinderTest.java
+++ 
b/core/src/test/java/com/datastax/dse/driver/internal/core/insights/PlatformInfoFinderTest.java
@@ -77,7 +77,7 @@ public class PlatformInfoFinderTest {
         "com.fasterxml.jackson.core:jackson-annotations", 
withUnverifiedRuntimeVersion("2.8.11"));
     expected.put("com.fasterxml.jackson.core:jackson-core", 
withUnverifiedRuntimeVersion("2.8.11"));
     expected.put("io.netty:netty-handler", 
withUnverifiedRuntimeVersion("4.0.56.Final"));
-    expected.put("org.lz4:lz4-java", 
withUnverifiedRuntimeVersionOptional("1.4.1"));
+    expected.put("at.yawk.lz4:lz4-java", 
withUnverifiedRuntimeVersionOptional("1.10.1"));
     expected.put("org.hdrhistogram:HdrHistogram", 
withUnverifiedRuntimeVersionOptional("2.1.10"));
     expected.put("com.github.jnr:jffi", 
withUnverifiedRuntimeVersion("1.2.16"));
     expected.put("io.netty:netty-buffer", 
withUnverifiedRuntimeVersion("4.0.56.Final"));
diff --git a/core/src/test/resources/insights/test-dependencies.txt 
b/core/src/test/resources/insights/test-dependencies.txt
index 6cabe8b25..e9186a35e 100644
--- a/core/src/test/resources/insights/test-dependencies.txt
+++ b/core/src/test/resources/insights/test-dependencies.txt
@@ -17,7 +17,7 @@ The following files have been resolved:
    com.fasterxml.jackson.core:jackson-core:jar:2.8.11:compile
    org.hdrhistogram:HdrHistogram:jar:2.1.10:compile (optional)
    org.ow2.asm:asm-tree:jar:5.0.3:compile
-   org.lz4:lz4-java:jar:1.4.1:compile (optional)
+   at.yawk.lz4:lz4-java:jar:1.10.1:compile (optional)
    io.netty:netty-transport:jar:4.0.56.Final:compile
    io.dropwizard.metrics:metrics-core:jar:3.2.2:compile
    io.netty:netty-common:jar:4.0.56.Final:compile
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 34cb3ef70..e302e1207 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -129,7 +129,7 @@
       <scope>test</scope>
     </dependency>
     <dependency>
-      <groupId>org.lz4</groupId>
+      <groupId>at.yawk.lz4</groupId>
       <artifactId>lz4-java</artifactId>
       <scope>test</scope>
     </dependency>
diff --git a/manual/core/compression/README.md 
b/manual/core/compression/README.md
index 9e84fde91..9f7ae3c48 100644
--- a/manual/core/compression/README.md
+++ b/manual/core/compression/README.md
@@ -46,7 +46,7 @@ datastax-java-driver {
 
 Compression must be set before opening a session, it cannot be changed at 
runtime.
 
-Two algorithms are supported out of the box: 
[LZ4](https://github.com/jpountz/lz4-java) and
+Two algorithms are supported out of the box: 
[LZ4](https://github.com/yawkat/lz4-java) and
 [Snappy](http://google.github.io/snappy/). The LZ4 implementation is a good 
first choice; it offers
 fallback implementations in case native libraries fail to load and
 [benchmarks](http://java-performance.info/performance-general-compression/) 
suggest that it offers
@@ -63,9 +63,9 @@ Dependency:
 
 ```xml
 <dependency>
-  <groupId>org.lz4</groupId>
+  <groupId>at.yawk.lz4</groupId>
   <artifactId>lz4-java</artifactId>
-  <version>1.4.1</version>
+  <version>1.10.1</version>
 </dependency>
 ```
 
diff --git a/manual/core/integration/README.md 
b/manual/core/integration/README.md
index f2a96160b..e2c7bc218 100644
--- a/manual/core/integration/README.md
+++ b/manual/core/integration/README.md
@@ -416,7 +416,7 @@ are not available on your platform, you can exclude the 
following dependency:
 
 #### Compression libraries
 
-The driver supports compression with either 
[LZ4](https://github.com/jpountz/lz4-java) or
+The driver supports compression with either 
[LZ4](https://github.com/yawkat/lz4-java) or
 [Snappy](http://google.github.io/snappy/).
 
 These dependencies are optional; you have to add them explicitly in your 
application in order to
diff --git a/osgi-tests/pom.xml b/osgi-tests/pom.xml
index bd3a6380d..c2cc4d830 100644
--- a/osgi-tests/pom.xml
+++ b/osgi-tests/pom.xml
@@ -79,7 +79,7 @@
       <artifactId>snappy-java</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.lz4</groupId>
+      <groupId>at.yawk.lz4</groupId>
       <artifactId>lz4-java</artifactId>
     </dependency>
     <dependency>
diff --git 
a/osgi-tests/src/test/java/com/datastax/oss/driver/internal/osgi/support/BundleOptions.java
 
b/osgi-tests/src/test/java/com/datastax/oss/driver/internal/osgi/support/BundleOptions.java
index 3e6171ca5..378b515aa 100644
--- 
a/osgi-tests/src/test/java/com/datastax/oss/driver/internal/osgi/support/BundleOptions.java
+++ 
b/osgi-tests/src/test/java/com/datastax/oss/driver/internal/osgi/support/BundleOptions.java
@@ -117,7 +117,7 @@ public class BundleOptions {
   public static CompositeOption lz4Bundle() {
     return () ->
         options(
-            mavenBundle("org.lz4", "lz4-java").versionAsInProject(),
+            mavenBundle("at.yawk.lz4", "lz4-java").versionAsInProject(),
             systemProperty("cassandra.compression").value("LZ4"));
   }
 
diff --git a/pom.xml b/pom.xml
index 6834cdd18..eb83459cf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,7 +57,7 @@
     <!-- when changing version also update version in LICENSE_binary  -->
     <hdrhistogram.version>2.1.12</hdrhistogram.version>
     <metrics.version>4.1.18</metrics.version>
-    <netty.version>4.1.119.Final</netty.version>
+    <netty.version>4.1.130.Final</netty.version>
     <esri.version>1.2.1</esri.version>
     <!--
     When upgrading TinkerPop please upgrade the version matrix in
@@ -73,7 +73,7 @@
     <jackson-databind.version>${jackson.version}</jackson-databind.version>
     <!-- optional dependencies -->
     <snappy.version>1.1.10.1</snappy.version>
-    <lz4.version>1.7.1</lz4.version>
+    <lz4.version>1.10.1</lz4.version>
     <!-- test dependencies -->
     <assertj.version>3.19.0</assertj.version>
     <commons-exec.version>1.3</commons-exec.version>
@@ -137,7 +137,7 @@
         <version>${snappy.version}</version>
       </dependency>
       <dependency>
-        <groupId>org.lz4</groupId>
+        <groupId>at.yawk.lz4</groupId>
         <artifactId>lz4-java</artifactId>
         <version>${lz4.version}</version>
       </dependency>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to