Databases

Redis CVE-2025-49844 (RediShell): Check and Patch on Linux

When a scanner flags CVE-2025-49844 on a Redis box, the first question is whether your package already carries the fix. The version string alone will not always tell you. RediShell is a use-after-free in the Lua parser that Redis embeds for EVAL scripts. Any user who can log in and run a script can send a crafted one that corrupts memory, escape the Lua sandbox and run code on the host with the rights of the Redis process.

Original content from computingforgeeks.com - post 200510

Every Redis build with Lua scripting is affected until the October 2025 releases, and Valkey inherited the same parser. Below you’ll find the fixed package for each distro, how to prove what you run, the patch commands and an ACL lockdown for servers you can’t restart today. In November 2026 we installed the vulnerable build on Debian 12 and 13, Rocky Linux 9 and 10, AlmaLinux 9 and Amazon Linux 2 and 2023 containers, then patched each one through its normal update path.

Which Redis versions fix CVE-2025-49844?

Upstream fixed it in Redis 6.2.20, 7.2.11, 7.4.6, 8.0.4 and 8.2.2, and in Valkey 7.2.11, 8.0.6 and 8.1.4, all released on 3 October 2025. Distro packages backport the fix into their own builds, so the build you need is the one in this table or anything newer from the same repository:

PlatformPackageFirst fixed buildAdvisory
Upstream Redisredis6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2GHSA-4789-qfc9-5f9q
Upstream Valkeyvalkey7.2.11, 8.0.6, 8.1.4Valkey release notes
Debian 11redis5:6.0.16-1+deb11u8DLA-4325-1
Debian 12redis5:7.0.15-1~deb12u6DSA-6020-1
Debian 13redis5:8.0.2-3+deb13u1DSA-6020-1
Debian 13valkey8.1.1+dfsg1-3+deb13u1DSA-6022-1
Ubuntu 24.04redis5:7.0.15-1ubuntu0.24.04.2USN-7824-1
Ubuntu 24.04valkey7.2.11+dfsg1-0ubuntu0.2USN-7893-1
Ubuntu 22.04lua5.1 (redis links it)5.1.5-8.1ubuntu0.22.04.1~esm1 (Ubuntu Pro, ESM Apps)Ubuntu CVE tracker
RHEL 8.10redis:6 module6.2.20-1.module+el8.10.0+23551+d4cd15d7RHSA-2025:19238
RHEL 9.6 / 9.7redis6.2.20-1.el9_6 / 6.2.20-2.el9_7RHSA-2025:19237 / 20926
RHEL 9.6 / 9.7redis:7 module7.2.11RHSA-2025:19345 / 20955
RHEL 9.7valkey8.0.6-2.el9_7RHSA-2025:21916
RHEL 10.0 / 10.1valkey8.0.6-1.el10_0 / 8.0.6-2.el10_1RHSA-2025:19675 / 21936
Rocky Linux, AlmaLinuxsame packages as RHELsame builds as RHELRLSA-2025 / ALSA-2025 with the same numbers
Amazon Linux 2redis (redis6 extra)6.2.20-2.amzn2.0.1ALAS2REDIS6-2025-015
Amazon Linux 2023redis66.2.20-2.amzn2023.0.1ALAS2023-2025-1222
Amazon Linux 2023valkey8.0.6-3.amzn2023.0.2ALAS2023-2025-1221
Alpine 3.22redis8.0.4-r0Alpine secdb
Alpine 3.23, 3.24redis8.2.2-r0Alpine secdb
Alpine 3.22, 3.23, 3.24valkey8.1.4-r0Alpine secdb
Docker Official Imageredistags 6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2 and laterGHSA-4789-qfc9-5f9q
Fixed builds for CVE-2025-49844 from the Redis advisory and each distro tracker, checked on 1 December 2026

Each row comes from the source that issues the fix: the Redis advisory GHSA-4789-qfc9-5f9q, the Debian security tracker, Ubuntu’s CVE page, Red Hat’s CVE page, the Amazon Linux bulletins ALAS2REDIS6-2025-015, ALAS2023-2025-1222 and ALAS2023-2025-1221, and the Alpine security tracker. Two quirks trip people up when they compare numbers. Alpine’s tracker page only lists 3.22 and edge, while its secdb feed gives 8.2.2-r0 for 3.23 and 3.24. And the “first fixed” build is rarely what the mirror hands you today: Debian 12 now ships deb12u10 and Rocky 9 ships redis 6.2.24, which are later builds that still carry the patch.

The same releases close three smaller Lua bugs, CVE-2025-46817, CVE-2025-46818 and CVE-2025-46819, so one upgrade clears all four. Ubuntu 22.04 is the odd one out. Its redis package is marked not affected because it links the system lua5.1, and the lua5.1 fix for jammy ships only through ESM Apps, so a 22.04 host without Ubuntu Pro keeps the vulnerable Lua. On those machines, attach Pro and upgrade lua5.1 (then restart Redis), or apply the ACL mitigation further down. Two support windows also matter here: Debian 11 left LTS on 31 August 2026, so later Debian 11 fixes come only through paid ELTS, and Alpine 3.21 reached end of life on 1 November 2026. The rows for both still tell you whether an existing host has the fix, but neither release is a place to stay.

Understanding what an attacker needs

The bug sits behind authentication, which is the part that decides how urgent your own servers are. An attacker needs a connection that can run EVAL or EVALSHA, and a fresh Redis install lets the default user do exactly that with no password. Put those two facts together and every Redis that listens on a reachable address without auth is wide open. Wiz, who found the bug and named it RediShell, counted about 330,000 Redis instances exposed to the internet, roughly 60,000 of them with no authentication at all, in its October 2025 write-up.

Scores differ by who’s counting. GitHub and NVD give it CVSS 9.9, the Redis blog says 10.0 and Red Hat rates it Important at 8.8. Here’s where things stood when we checked on 1 December 2026:

  • CISA KEV: not listed
  • EPSS: 0.054, the 93.5th percentile (FIRST API, latest score as of 1 December 2026)
  • CISA SSVC: exploitation “poc”, not automatable, total technical impact
  • Redis: Redis Cloud patched, no evidence of exploitation reported

A public proof of concept exists, which is what the “poc” status means, so treat a reachable, password-free Redis as an emergency and a localhost-only one with ACLs as a normal patch window. We won’t link exploit code here.

Checking which build you actually run

Ask the package manager first, then ask the running server. The package query tells you what’s on disk, and INFO server tells you what the process loaded, which only matches after a restart. On Debian and Ubuntu the package query is the one that counts:

dpkg-query -W redis-server redis-tools

Our Debian 12 server started on the September 2025 build, installed from snapshot.debian.org so we could watch a real upgrade rather than a fresh install.

redis-server	5:7.0.15-1~deb12u5
redis-tools	5:7.0.15-1~deb12u5

That’s below deb12u6, so it’s vulnerable. On RHEL, Rocky, AlmaLinux and Amazon Linux use rpm -q redis (or redis6, valkey), and on Alpine use apk list -I redis. For the running process, ask the server itself:

redis-cli INFO server | grep -E 'redis_version|executable'

On Debian the version string does not move when you patch. Debian backports the fix into 7.0.15 and 8.0.2, so a scanner that only reads redis_version will flag a patched Debian box forever. The vulnerable server printed these two lines.

redis_version:7.0.15
executable:/usr/bin/redis-server

After the upgrade it printed exactly the same two lines. Only the package revision and the changelog prove the fix there, which we show in the next section. Containers follow the upstream numbering instead, so redis-server --version inside the image is enough.

Patching Redis on Debian and Ubuntu

The fix arrived through Debian’s security archive and later builds carry it forward, so a plain upgrade of the two packages is all it takes. Refresh the package lists first:

sudo apt-get update

Then upgrade only Redis. A full apt upgrade works too, but a targeted upgrade keeps the change small on a box you would rather not reboot, so it is the one we run on production caches.

sudo apt-get install --only-upgrade -y redis-server redis-tools

On Debian 12 apt pulled deb12u10 from bookworm-security, four revisions past the first fixed build.

Unpacking redis-server (5:7.0.15-1~deb12u10) over (5:7.0.15-1~deb12u5) ...
Unpacking redis-tools (5:7.0.15-1~deb12u10) over (5:7.0.15-1~deb12u5) ...
Setting up redis-tools (5:7.0.15-1~deb12u10) ...
Setting up redis-server (5:7.0.15-1~deb12u10) ...

Restart the service so the process loads the new binary. Until it restarts, the old code is still in memory and still exploitable, whatever the package database says.

sudo systemctl restart redis-server
systemctl is-active redis-server

Now prove the fix from the package changelog, since the version string will not do it for you.

zcat /usr/share/doc/redis-server/changelog.Debian.gz | grep -m3 -B3 -A1 CVE-2025-49844

The entry that added the fix is deb12u6, and the screenshot puts the before and after side by side. Notice that redis_version reads 7.0.15 on both sides:

Debian 12 terminal showing redis-server 7.0.15-1~deb12u5 upgraded to deb12u10, the changelog entry for CVE-2025-49844 and redis_version still 7.0.15

Debian 13 behaves the same way. Our trixie server went from 5:8.0.2-3 to 5:8.0.2-3+deb13u3, the changelog showed redis (5:8.0.2-3+deb13u1) trixie-security as the fixing entry, and INFO server still said 8.0.2. If you run Valkey on Debian 13 instead, upgrade valkey-server and valkey-tools the same way; the candidate on our box was 8.1.1+dfsg1-3+deb13u3. Ubuntu 24.04 takes the same apt-get install --only-upgrade command, and Ubuntu’s tracker gives 5:7.0.15-1ubuntu0.24.04.2 as its fixed redis build. Our Redis on Debian guide covers the rest of that package’s layout if you inherited the box.

Patching Redis and Valkey on RHEL, Rocky Linux and AlmaLinux

The RHEL family has the cleanest path, because the advisories carry the CVE reference and dnf can select updates by it. That matters on hosts where you don’t want a full dnf upgrade pulling in a kernel. Start by asking which advisories fix it:

dnf updateinfo list --cve CVE-2025-49844

On our Rocky Linux 9 server, running redis 6.2.19 from the 9.6 vault, two advisories came back.

RLSA-2025:19237 Important/Sec. redis-6.2.20-1.el9_6.x86_64
RLSA-2025:20926 Important/Sec. redis-6.2.20-2.el9_7.x86_64

An empty list on a box that has redis installed means one of two things: you’re already past the fix, or your repositories don’t carry the advisory metadata. Apply only what the CVE needs:

sudo dnf upgrade -y --cve CVE-2025-49844

Then restart and read the package changelog, which names the CVE on the rebase entry.

sudo systemctl restart redis
rpm -q --changelog redis | grep -m2 CVE-2025-49844

Rocky 9.8 had moved on to redis 6.2.24 by the time we tested, so that’s what --cve installed. It’s a later build on the same branch and it keeps the 6.2.20 fix:

Rocky Linux 9 terminal listing RLSA-2025:19237 and RLSA-2025:20926, then dnf upgrade --cve CVE-2025-49844 moving redis 6.2.19 to 6.2.24

Unlike Debian, current RHEL minors rebase to the upstream release, so redis_version does change and a version-based scanner reads it correctly. The long-life minors are the exception: RHEL 9.0 and 9.2 (Update Services for SAP Solutions) and 9.4 EUS got backports instead. Their fixed builds are redis-6.2.6-1.el9_0.5, 6.2.7-1.el9_2.5 and 6.2.7-1.el9_4.5 (RHSA-2025:18997, 19086 and 18996). The redis:7 stream on 9.4 EUS has its own RHSA-2025:18931, and the redis:6 stream on RHEL 8.4, 8.6 and 8.8 long-life minors got RHSA-2025:19318, 19239 and 19399. On those hosts, trust the RPM release, not the version string. The full install and tuning steps live in our guide to Redis 8 on Rocky Linux, AlmaLinux and RHEL.

The redis:7 module stream on EL9

EL9 ships two Redis lines: the plain redis 6.2 package and the redis:7 module stream. They get separate advisories, and if you enabled the stream your box takes the 7.2 fix instead. On AlmaLinux 9 we started from 7.2.10 out of the 9.6 vault, and the same --cve command picked the stream build:

AlmaLinux 9 terminal upgrading the redis:7 module build 7.2.10 to 7.2.16 after ALSA-2025:19345 and ALSA-2025:20955

The changelog line reads “rebase to 7.2.11”, and AlmaLinux’s current stream build is 7.2.16. RHEL 8 has the same shape with the redis:6 stream: Red Hat’s fixed build is 6.2.20-1.module+el8.10.0+23551+d4cd15d7 under RHSA-2025:19238, and dnf upgrade --cve CVE-2025-49844 picks it up the same way.

Valkey on Rocky Linux 10 and RHEL 10

EL10 doesn’t ship Redis at all, only Valkey, and Valkey has the same Lua parser. Our Rocky Linux 10 server ran valkey 8.0.4 from the 10.0 vault, and RLSA-2025:19675 and RLSA-2025:21936 both listed the fix. One --cve upgrade moved it to the current 8.1.10 build:

Rocky Linux 10 terminal upgrading valkey 8.0.4 to 8.1.10 with dnf upgrade --cve CVE-2025-49844 and the changelog line for the 8.0.6 rebase

Watch the first command in that capture. Valkey’s INFO server still reports redis_version:7.2.4 for client compatibility, so a scanner that keys on that field will call every Valkey host vulnerable. Read valkey_version or the RPM instead. Note that the upgrade crossed from the 8.0 branch to 8.1, which is the stream Rocky now ships; our Valkey on Rocky Linux 10 guide shows the service layout after that move.

Patching redis6 and Valkey on Amazon Linux

Amazon Linux 2023 is where we lost the most time, and it’s the one most likely to leave you thinking you’re patched when you aren’t. AL2023 locks each instance to the repository snapshot it was launched from. On an image from before the fix, dnf never sees the advisory, so --cve reports nothing to do. We reproduced it in an amazonlinux:2023.8.20250915.0 container with redis6 6.2.14 installed:

sudo dnf upgrade -y --cve CVE-2025-49844

The lock hides the update completely, which is why a “clean” vulnerability report from dnf on AL2023 proves nothing on its own.

Dependencies resolved.
Nothing to do.
Complete!

Point dnf at the latest release and the advisory appears. You can upgrade just the package as below, or move the whole host forward with sudo dnf upgrade --releasever=latest, which is how AWS documents moving an instance to a newer release:

sudo dnf updateinfo list --cve CVE-2025-49844 --releasever=latest
sudo dnf upgrade -y --releasever=latest redis6

The screenshot shows the whole sequence in the container, from “Nothing to do” to redis6 6.2.20 with the CVE in its changelog.

Amazon Linux 2023 container where dnf upgrade --cve says Nothing to do until --releasever=latest finds ALAS2023-2025-1222 and installs redis6 6.2.20

Valkey on AL2023 had a surprise of its own. ALAS2023-2025-1221 names valkey-8.0.6-3.amzn2023.0.2, but dnf upgrade --releasever=latest valkey on our 8.0.3 install went straight to 9.0.7, a new major version. If your app or replicas aren’t ready for 9.0, don’t use latest. ALAS2023-2025-1221 names the release that carries the fix, and pointing dnf at that release keeps you on the 8.0 line:

sudo dnf update valkey --releasever 2023.9.20251014

That command comes from the bulletin itself; we ran only the latest path in the lab. A later dnf upgrade --releasever=latest will still offer 9.0, so hold the package with dnf versionlock (install the plugin with sudo dnf install 'dnf-command(versionlock)') until you are ready to move.

Amazon Linux 2 keeps Redis 6 in the redis6 extra, and there the classic yum security plugin works without any release games:

sudo yum update -y --cve CVE-2025-49844

Our Amazon Linux 2 container went from 6.2.14 to the ALAS2REDIS6-2025-015 build.

---> Package redis.x86_64 0:6.2.14-2.amzn2.0.5 will be updated
---> Package redis.x86_64 0:6.2.20-2.amzn2.0.1 will be an update
Updating:
 redis      x86_64      6.2.20-2.amzn2.0.1         amzn2extra-redis6      1.1 M

Restart the service afterwards on a real instance, then confirm from the changelog. The package is redis on Amazon Linux 2 and redis6 on AL2023, and both returned “Fixes CVE-2025-49844”:

rpm -q --changelog redis | grep -m2 CVE-2025-49844
rpm -q --changelog redis6 | grep -m2 CVE-2025-49844

Run the first on Amazon Linux 2 and the second on AL2023. The AL2023 service unit is redis6 as well, so restart it by that name.

Updating Alpine packages and Docker images

Containers do not patch in place, so you need a new image and a redeploy. Alpine’s mirrors keep only the current build of each package, which means you can’t install the vulnerable one any more and every fresh apk add redis lands on a fixed build. We checked what each branch installs today, including 3.21, which is past its end of support but still common in old images:

sudo docker run --rm alpine:3.22 sh -c 'apk add --no-cache redis >/dev/null 2>&1; apk list -I redis; redis-server --version'

We ran it against four branches, swapping the tag each time. These are the apk list and version lines in that order, 3.21 first, all at or past the secdb fix:

redis-7.2.11-r0 x86_64 {redis} (BSD-3-Clause) [installed]
Redis server v=7.2.11 sha=00000000:0 malloc=libc bits=64 build=d6aa7105286907c6
redis-8.0.4-r0 x86_64 {redis} (AGPL-3.0-only OR SSPL-1.0) [installed]
Redis server v=8.0.4 sha=00000000:1 malloc=libc bits=64 build=f9b04536a8a35f8a
redis-8.4.2-r0 x86_64 {redis} (AGPL-3.0-only OR SSPL-1.0) [installed]
Redis server v=8.4.2 sha=00000000:1 malloc=libc bits=64 build=b16f4b7dfcd86229
redis-8.8.0-r0 x86_64 {redis} (AGPL-3.0-only OR SSPL-1.0) [installed]
Redis server v=8.8.0 sha=00000000:1 malloc=libc bits=64 build=7cb0995939654fc1

The risk on Alpine is an old image you built months ago, not the mirror. Rebuild anything with apk add redis in its Dockerfile, or run apk upgrade redis in a long-lived container. For the official redis image, the tag number is the upstream version, so the check is just a version print:

sudo docker run --rm redis:8.2.1 redis-server --version
sudo docker run --rm redis:8.2.2 redis-server --version

The first tag is vulnerable and the second carries the patch.

Redis server v=8.2.1 sha=00000000:1 malloc=jemalloc-5.3.0 bits=64 build=fcae35583392417f
Redis server v=8.2.2 sha=00000000:1 malloc=jemalloc-5.3.0 bits=64 build=fe8f07ffb18b0e6d

We saw the same pairs for 7.4.5 against 7.4.6 and 8.0.3 against 8.0.4. Pin a fixed patch tag or a digest in compose files, because a floating tag like 8.2 only helps if something actually pulls it again. Our Redis in Podman or Docker guide has the compose layout we use for that.

Blocking Lua scripting until you can patch

If a restart has to wait for a maintenance window, take away the thing the bug needs. Redis’s own workaround is an ACL rule that stops users running Lua scripts, and the @scripting category covers every way in:

  • EVAL, EVALSHA and their _RO variants
  • SCRIPT LOAD, SCRIPT FLUSH and the other SCRIPT subcommands
  • FUNCTION LOAD and FCALL, which feed Lua through the same parser and so reach this bug too

Check first that your application doesn’t use scripts. Job queues and rate limiters often do, and they’ll start failing with NOPERM the moment you apply this. We tested the rules on a Debian 13 server. Create an admin user first that keeps every permission, because once the other users are locked down it’s the only account that can still change ACLs:

redis-cli ACL SETUSER admin on '>AdminPass1' '~*' '&*' '+@all'
redis-cli ACL SETUSER app on '>S3cretPass!' '~*' '&*' '+@all' '-@scripting'

Most write-ups stop at that second line, and on its own it doesn’t hold. +@all still includes @admin, which carries ACL SETUSER and CONFIG, so a client logged in as app can hand scripting back to itself. Ours did exactly that with one ACL SETUSER app +@scripting and then ran EVAL without complaint. The answer is to take @admin away from every user except the admin account.

One version catch first. The '&*' channel rule in those lines only exists from Redis 6.2, according to the ACL documentation, so any Redis 6.0.x rejects the whole SETUSER command and no user is created. Redis 5 and older have no ACLs at all, so there the only stopgap is rename-command EVAL "" and the same for EVALSHA and SCRIPT in the config, plus a restart. The 6.0 case covers Ubuntu 22.04 and Debian 11, which ship 6.0.16, and the RHEL 8.4 and 8.6 long-life streams on 6.0.9. On those hosts drop '&*' (6.0 has no channel permissions, so every user already reaches all channels), and check with ACL LIST that the admin user exists before you restrict anything else.

With the version sorted, strip @admin from the app user:

redis-cli ACL SETUSER app -@scripting -@admin

After that, the same user gets NOPERM for ACL SETUSER, CONFIG SET and EVAL, while plain reads and writes still work. The capture shows the bypass first and the closed version after it:

Redis app user with +@all -@scripting re-enabling scripting through ACL SETUSER, then NOPERM for ACL SETUSER, CONFIG SET and EVAL once @admin is removed while GET still works

An app user alone doesn’t close the hole, because the password-free default user can still run scripts and admin commands. Give it a password and the same two removals in one step. Be careful here: every client that connects without credentials, including health checks and your own redis-cli habit, gets NOAUTH from now on, so update the clients first.

Replicated and Sentinel setups need one more step before you touch default, because they usually log in as that user. PSYNC and REPLCONF sit in @admin, so a replica that reconnects after the change can’t resync, and Sentinel loses the CONFIG and REPLICAOF rights it needs for failover. Our lab server was standalone, so this part comes from the Redis ACL documentation, which gives each of them a narrow user of its own:

redis-cli --user admin --pass AdminPass1 --no-auth-warning ACL SETUSER replica-user on '>ReplPass1' +psync +replconf +ping
redis-cli --user admin --pass AdminPass1 --no-auth-warning ACL SETUSER sentinel-user on '>SentPass1' resetchannels '&__sentinel__:hello' +multi +slaveof +ping +exec +subscribe '+config|rewrite' +role +publish +info '+client|setname' '+client|kill' '+script|kill'

Run both on every node, primary and replicas alike, because any replica can become the primary after a failover. On Redis 6.0, leave out resetchannels '&__sentinel__:hello' for the same reason as above. Then set masteruser replica-user and masterauth ReplPass1 with CONFIG SET as admin on every node (the CONFIG REWRITE step below persists them), the current primary included so it can resync once it’s demoted, and give each Sentinel sentinel auth-user mymaster sentinel-user and sentinel auth-pass mymaster SentPass1, using your own master name. Do all of that before you restrict default. Neither user can load a script, since SCRIPT KILL only stops one that is already running.

redis-cli ACL SETUSER default on '>AnotherPass1' -@scripting -@admin

Until you persist them, ACL changes made with SETUSER live only in memory. That’s your safety net: if a client breaks, a plain restart brings back the old users. Once it all works, write the users into redis.conf with CONFIG REWRITE on a server without an aclfile. The default user can’t run it any more, so log in as admin:

redis-cli --user admin --pass AdminPass1 --no-auth-warning CONFIG REWRITE

We restarted Redis afterwards to prove it stuck: anonymous PING got NOAUTH, the default user couldn’t re-enable scripting, and the app user still couldn’t run EVAL. Passwords are stored as SHA-256 hashes, which we masked in the capture:

Redis default user given a password and stripped of @scripting and @admin, admin user running CONFIG REWRITE, ACL lines in redis.conf and EVAL still refused after restart

After the rewrite, don’t fix a lockout by deleting the user default line. Redis then recreates default with nopass and +@all, which removes the mitigation along with the lockout and says nothing about it. Log in as admin and adjust the user with ACL SETUSER instead. For health checks and cron jobs, set the password in the REDISCLI_AUTH environment variable rather than on the command line, where it shows up in the process list. The short example passwords here are for the lab only; ACL GENPASS prints a random 64-character hex one for real use.

If you’d rather keep users out of redis.conf, use an aclfile and save with ACL SAVE instead. The two can’t be mixed, since Redis refuses to start with user lines in the config and an aclfile set together. The switch we ran on the lab server looked like this:

sudo sed -i '/^user /d' /etc/redis/redis.conf
echo 'aclfile /etc/redis/users.acl' | sudo tee -a /etc/redis/redis.conf
sudo touch /etc/redis/users.acl
sudo chown redis:redis /etc/redis/users.acl
sudo chmod 640 /etc/redis/users.acl
sudo systemctl restart redis-server

Create the empty file before the restart, because Redis won’t start when the aclfile it points at is missing. Deleting the user lines also drops every user you defined, and ours came back with default on nopass and +@all. So run the ACL SETUSER commands again for admin, app, replica-user and sentinel-user (if you created them) and default, save them with ACL SAVE as the admin user, and check the result with ACL LIST before you call the host mitigated.

Keeping Redis off the network

The ACL stops scripts, while the listener decides who can try. The Debian package binds to loopback and keeps protected mode on, which we confirmed on the lab server:

ss -tlnp | grep 6379

Only the two loopback addresses were listening, so nothing off the box could reach the port. Container images and hand-written configs often bind every interface instead, because that’s the easy way to let an app container connect. Check each host rather than trusting the package default.

LISTEN 0      511        127.0.0.1:6379      0.0.0.0:*
LISTEN 0      511            [::1]:6379         [::]:*

If yours shows a wildcard or public address, bind it back to the private interface your app uses, or firewall port 6379 to the app servers only. The live settings come from CONFIG GET bind and CONFIG GET protected-mode. On our box they returned 127.0.0.1 -::1 and yes. Skip this check and an exposed instance stays one weak password away from the bug, patched or not.

Keeping Redis patched after RediShell

Valkey alone shipped two more security releases in October and November 2026, so expect the next one. A few habits make the next patch a ten-minute job instead of an afternoon of guessing:

  • Scan by package revision, not redis_version
  • Run dnf updateinfo list --sec on EL hosts weekly
  • Move AL2023 hosts to --releasever=latest on a schedule
  • Rebuild Redis images on every base image update
  • Keep -@scripting -@admin on users that never run Lua
  • Read ACL LOG as admin to see which client hit a denied command

The ACL is worth keeping even after the upgrade, and ACL LOG tells you whether anything still tries scripts: on our server it named the app user, the eval object and the client address of every refused call. Most apps we see never call EVAL. For them, an ACL that denies it turns the next Lua parser bug into a non-event. If you’ve moved to Valkey, our write-up on the Valkey CVE-2026-130822 client eviction fix covers the November 2026 releases. Our setup for Valkey monitoring with Prometheus and Grafana adds a version panel, so the next sweep is a glance at a dashboard. Teams still weighing the switch can compare the two projects in our Valkey vs Redis migration guide.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch WP Rocket CVE-2026-125812: Check, Patch and Hunt Planted Files Security WP Rocket CVE-2026-125812: Check, Patch and Hunt Planted Files Enable Post-Quantum TLS in Nginx, Apache, HAProxy and OpenSSH Security Enable Post-Quantum TLS in Nginx, Apache, HAProxy and OpenSSH How To Install MongoDB 8.0 on Amazon Linux 2023 Databases How To Install MongoDB 8.0 on Amazon Linux 2023

Leave a Comment

Press ESC to close