Advisories · Databases
CVE-2026-23479
High
CVSS 7.7
Redis use-after-free and RESTORE flaws leading to code execution
Disclosed 5 May 2026 · Last reviewed 2 Dec 2026
An authenticated client can trigger a use-after-free or feed RESTORE a crafted payload and run code as the Redis user. A Redis on 0.0.0.0 with no password turns that into unauthenticated access.
What happened
Evicting a blocked client while it re-ran a command freed memory that was still in use, and RESTORE did not fully validate serialized values. Both reach code execution with a valid connection.
Affected and patched versions
- Affected
- Redis OSS/CE before 6.2.22, 7.2.14, 7.4.9, 8.2.6, 8.4.3 and 8.6.3. The same release fixes CVE-2026-25243 (RESTORE) and three related flaws.
- Patched
- Redis 6.2.22, 7.2.14, 7.4.9, 8.2.6, 8.4.3 and 8.6.3.
How to check your server
Check
redis-server --version ss -tlnp | grep 6379
How to fix and harden
- Check the version and the bind address. 127.0.0.1:6379 is local; 0.0.0.0:6379 is reachable from the network.
- Upgrade to the fixed release for your line, or your distribution's patched package.
- Keep Redis on loopback, or publish its Docker port as 127.0.0.1:6379:6379.
- Require a password and deny RESTORE, EVAL and MODULE to application users with ACL rules.
Fix
sudo apt update && sudo apt install --only-upgrade redis-server sudo systemctl restart redis-server
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON