Cve 2025 49844 When Lua Scripts Turn Lethal In Redis
A use-after-free flaw in Redis's Lua scripting engine lets an authenticated user who can run scripts manipulate garbage collection and execute arbitrary code on the host. The text says no public exploit exists yet but rates the issue critical.
Redis, the popular in-memory data store, has been hit with a critical vulnerability which is tracked as CVE-2025–49844. It allows authenticated users to trigger a use-after-free condition via Lua scripting.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely improper memory lifecycle handling in the Lua garbage collector, where object references can be manipulated to trigger a use-after-free.
Impact
An authenticated user with scripting privileges could achieve remote code execution and full compromise of the Redis instance, though the text notes no public exploit has surfaced yet.
What the attacker needed
Authenticated access; scripting privileges (EVAL/EVALSHA)
The fix
It should be fixed by upgrading to Redis 8.2.2 or later and disabling scripting where it is not needed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Redis is a fast in-memory database, and it can run small Lua programs sent by clients. A use-after-free means the program keeps using a piece of memory after it has been freed, so an attacker can sometimes make it run their own code. Here, only someone who can already log in and run scripts could try this.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.