diff --git a/.build/cassandra-deps-template.xml b/.build/cassandra-deps-template.xml
index e7d8b78ef4..cfbc5eddae 100644
--- a/.build/cassandra-deps-template.xml
+++ b/.build/cassandra-deps-template.xml
@@ -45,7 +45,7 @@
snappy-java
- org.lz4
+ at.yawk.lz4
lz4-java
diff --git a/.build/parent-pom-template.xml b/.build/parent-pom-template.xml
index 8a88f582a0..75a9cebf72 100644
--- a/.build/parent-pom-template.xml
+++ b/.build/parent-pom-template.xml
@@ -294,9 +294,9 @@
1.1.10.4
- org.lz4
+ at.yawk.lz4
lz4-java
- 1.8.0
+ 1.10.1
com.github.luben
@@ -746,7 +746,7 @@
io.netty
netty-all
- 4.1.119.Final
+ 4.1.130.Final
io.netty
@@ -840,18 +840,18 @@
io.netty
netty-transport-native-epoll
- 4.1.119.Final
+ 4.1.130.Final
io.netty
netty-transport-native-epoll
- 4.1.119.Final
+ 4.1.130.Final
linux-x86_64
io.netty
netty-transport-native-epoll
- 4.1.119.Final
+ 4.1.130.Final
linux-aarch_64
diff --git a/CHANGES.txt b/CHANGES.txt
index 2569b03124..51c34c6936 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,7 @@ Merged from 4.1:
* Disk usage guardrail cannot be disabled when failure threshold is reached (CASSANDRA-21057)
* ReadCommandController should close fast to avoid deadlock when building secondary index (CASSANDRA-19564)
Merged from 4.0:
+ * Switch lz4-java to at.yawk.lz4 version due to CVE (CASSANDRA-20152)
* Restrict BytesType compatibility to scalar types only (CASSANDRA-20982)
* Backport fix to nodetool gcstats output for direct memory (CASSANDRA-21037)
* ArrayIndexOutOfBoundsException with repaired data tracking and counters (CASSANDRA-20871)
diff --git a/NEWS.txt b/NEWS.txt
index c6db55636e..1192f4178a 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -65,6 +65,15 @@ restore snapshots created with the previous major version using the
'sstableloader' tool. You can upgrade the file format of your snapshots
using the provided 'sstableupgrade' tool.
+5.0.7
+======
+
+Upgrading
+---------
+ - This release addresses a security vulnerability in the LZ4 dependency, documented in CASSANDRA-21052. For users
+ who did not use LZ4 native libraries, this will now fallback to a safer but less performant pure Java
+ implementation. During startup, a warning will be logged if the LZ4 native library is not available.
+
5.0.5
=====