Skip to content

Commit ec3b425

Browse files
committed
Switch lz4-java to at.yawk.lz4 version due to CVE
Patch by Abe Ratnofsky; reviewed by Jyothsna Konisa, Dmitry Konstantinov for CASSANDRA-21052
1 parent 4c33f1f commit ec3b425

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
4.0.20
2+
* Switch lz4-java to at.yawk.lz4 version due to CVE (CASSANDRA-20152)
23
* Restrict BytesType compatibility to scalar types only (CASSANDRA-20982)
34
* Backport fix to nodetool gcstats output for direct memory (CASSANDRA-21037)
45
* ArrayIndexOutOfBoundsException with repaired data tracking and counters (CASSANDRA-20871)

NEWS.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ restore snapshots created with the previous major version using the
5151
'sstableloader' tool. You can upgrade the file format of your snapshots
5252
using the provided 'sstableupgrade' tool.
5353

54+
4.0.20
55+
======
56+
57+
Upgrading
58+
---------
59+
- This release addresses a security vulnerability in the LZ4 dependency, documented in CASSANDRA-21052. For users
60+
who did not use LZ4 native libraries, this will now fallback to a safer but less performant pure Java
61+
implementation. During startup, a warning will be logged if the LZ4 native library is not available.
62+
5463
4.0.14
5564
======
5665

build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@
546546
<scm connection="${scm.connection}" developerConnection="${scm.developerConnection}" url="${scm.url}"/>
547547
<dependencyManagement>
548548
<dependency groupId="org.xerial.snappy" artifactId="snappy-java" version="1.1.10.4"/>
549-
<dependency groupId="org.lz4" artifactId="lz4-java" version="1.8.0"/>
549+
<dependency groupId="at.yawk.lz4" artifactId="lz4-java" version="1.10.1"/>
550550
<dependency groupId="com.github.luben" artifactId="zstd-jni" version="1.5.7-2"/>
551551
<dependency groupId="com.google.guava" artifactId="guava" version="27.0-jre">
552552
<exclusion groupId="com.google.code.findbugs" artifactId="jsr305" />
@@ -805,7 +805,7 @@
805805
relativePath="${final.name}-parent.pom"/>
806806
<scm connection="${scm.connection}" developerConnection="${scm.developerConnection}" url="${scm.url}"/>
807807
<dependency groupId="org.xerial.snappy" artifactId="snappy-java"/>
808-
<dependency groupId="org.lz4" artifactId="lz4-java"/>
808+
<dependency groupId="at.yawk.lz4" artifactId="lz4-java"/>
809809
<dependency groupId="com.google.guava" artifactId="guava"/>
810810
<dependency groupId="commons-cli" artifactId="commons-cli"/>
811811
<dependency groupId="commons-codec" artifactId="commons-codec"/>

0 commit comments

Comments
 (0)