Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Upgrade custom Redis image and disable RESTORE for CVE-2026-25243 (#5320)

Abimael Martell35dc7130cce8
diff --git a/apps/redis/Dockerfile b/apps/redis/Dockerfile
index 7af79d0d0..f61421879 100644
--- a/apps/redis/Dockerfile
+++ b/apps/redis/Dockerfile
@@ -1,5 +1,5 @@
-ARG REDIS_VERSION=8.0.3
-FROM bitnami/redis:${REDIS_VERSION}
+ARG REDIS_VERSION=8.8.3
+FROM redis:${REDIS_VERSION}
COPY start-redis-server.sh /usr/bin/start-redis-server.sh
diff --git a/apps/redis/start-redis-server.sh b/apps/redis/start-redis-server.sh
index 8004d1640..cfc8da023 100755
--- a/apps/redis/start-redis-server.sh
+++ b/apps/redis/start-redis-server.sh
@@ -2,8 +2,12 @@
set -e
-sysctl vm.overcommit_memory=1 || true
-sysctl net.core.somaxconn=1024 || true
+mkdir -p /data/redis
+if [ "$(id -u)" = 0 ]; then
+ chown 1001:1001 /data
+ chown -R 1001:1001 /data/redis
+ exec /usr/bin/setpriv --reuid=1001 --regid=1001 --clear-groups /usr/bin/start-redis-server.sh
+fi
PW_ARG=""
if [[ ! -z "${REDIS_PASSWORD}" ]]; then
@@ -19,8 +23,6 @@ fi
# Set maxmemory to 80% of RAM
MAXMEMORY=$(($FLY_VM_MEMORY_MB*80/100))
-mkdir -p /data/redis
-
redis-server $PW_ARG \
--dir /data/redis \
--maxmemory "${MAXMEMORY}mb" \