Skip to content
Memory corruption Write-up Advanced

RediShell: Critical Remote Code Execution Vulnerability (CVE-2025-49844) in Redis, 10 CVSS score

A use-after-free memory corruption bug in Redis's Lua scripting allows an authenticated attacker to escape the Lua sandbox and execute arbitrary native code on the host. This grants full host access, enabling data theft, malware installation, and lateral movement.

Benny Isaacs Follow

Published on wiz.io

Wiz Research has uncovered a critical Remote Code Execution (RCE) vulnerability, CVE-2025-49844 which we've dubbed #RediShell, in the widely used Redis in-memory data structure store. The vulnerability has been assigned a CVSS score of 10.0 - the highest possible severity (note that we have seen this listed as a 9.9…

Benny Isaacs, on wiz.io

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 a use-after-free bug in Redis's Lua interpreter integration, where memory is freed but still referenced, allowing sandbox escape.

Impact

An attacker could achieve full host compromise, steal credentials, install malware, exfiltrate data, and move laterally within cloud environments; unauthenticated internet-exposed instances are at highest risk.

What the attacker needed

Authentication to Redis (post-auth); Lua scripting enabled (default); network access to Redis instance

How it was found

  1. Attacker sends a malicious Lua script to exploit the use-after-free vulnerability
  2. Script escapes the Lua sandbox and achieves arbitrary code execution
  3. Establishes reverse shell for persistent access
  4. Steals credentials (.ssh keys, IAM tokens, certificates)
  5. Installs malware or crypto miners
  6. Exfiltrates sensitive data from Redis and host

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 popular database often used for caching. A bug in how it runs small scripts (Lua) lets someone who can log in send a malicious script that breaks out of the script's safe area and runs commands directly on the server. This means they could take over the whole machine.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.