
CVE-2025-49844

Critical Remote Code Execution in the World's Fastest In-Memory Store
Redis Lua scripting just became the perfect post-auth landing zone.
Authenticated attacker → crafted Lua script → escape sandbox → full RCE on host
CVE-2025-49844 ("RediShell") is a critical use-after-free (UAF) memory corruption vulnerability in Redis' embedded Lua scripting engine.
An authenticated user submits a specially crafted Lua script via EVAL / EVALSHA that manipulates the garbage collector, triggers a UAF during parsing/execution, escapes the Lua sandbox, and achieves arbitrary code execution on the underlying host.
The bug lurked in Redis source code for ~13 years (since early Lua integration) and affects virtually all versions with Lua enabled until patched in October 2025.
“One malicious EVAL call. Full server takeover. Redis in 2025–2026 just got interesting.”
Reality in March 2026:
Redis embeds Lua 5.x for scripting (EVAL, EVALSHA, functions, etc.).
The flaw exists in Lua parser/GC interaction:
EVALluaY_parser), a TString object is allocated but not protected on the Lua stackKey fatal point: Lua sandbox was never hardened against memory corruption primitives.
Vulnerable: All Redis versions with Lua scripting enabled before the October 2025 patches
Fixed in:
Common targets in 2026:
Workaround (pre-patch):
EVAL, EVALSHA, SCRIPT LOAD, etc.Realistic attack flow (high-level, from public analyses):
EVAL script that triggers UAF + memory leakExample one-liner skeleton (not full exploit – for illustration only):
redis-cli -h <target> -p 6379 -a password
> EVAL "crafted_lua_that_triggers_uaf_and_execs_shell" 0
Full weaponized PoCs appeared on GitHub within days (memory leak → ROP → shell).
Many include ASLR bypass, NX/DEP evasion, and persistence options.
redis-cli INFO SERVER | grep redis_version
→ Vulnerable if < patched releases above
# In redis.conf or ACL
acl setuser default off ~* &* +@all -EVAL -EVALSHA -SCRIPT
EVAL usage| Date | Event |
|---|
| ~2012 | Vulnerable Lua integration introduced |
| May 2025 | Wiz discovers & demos at Pwn2Own Berlin |
| Oct 3, 2025 | Public disclosure + Redis security advisory |
| Oct 3, 2025 | Fixed versions released (6.2.20+, 7.x, 8.x) |
| Oct 6–7, 2025 | Wiz/Sysdig/Redrays blogs + initial PoCs |
| Oct 2025+ | Exploit repos appear (GitHub, labs) |
| March 2026 | Exploitation ongoing against legacy/cloud setups |