CVE-2025-49844CWE-416

CVE-2025-49844

Critical · published October 4, 2025

Patch now

High probability of exploitation

CVSS calls it critical at 9.9. It sits in the 99.7th percentile for exploit probability.

CVSS v3.1
9.9
EPSS
82%
Percentile
99.7
In the wild
Unconfirmed
What it is

🚨 An authenticated user could unleash chaos with a specially crafted Lua script in Redis! This crafty trick can manipulate the garbage collector and even lead to remote code execution. 🔥 Think of your Redis server as a high-tech kitchen where chefs (users) can whip up gourmet meals (commands) with special recipes (Lua scripts). If one chef learns a sneaky trick to tamper with the kitchen equipment (the garbage collector), they could create a disaster that spills out into the dining room (your system). An attacker with authenticated access could exploit this vulnerability to execute malicious code on your server, potentially gaining control over your entire Redis instance. This could lead to unauthorized access to sensitive data, manipulation of data, or complete server takeover — an absolutely devastating scenario!

Put simply

Think of your Redis server as a high-tech kitchen where chefs (users) can whip up gourmet meals (commands) with special recipes (Lua scripts). If one chef learns a sneaky trick to tamper with the kitchen equipment (the garbage collector), they could create a disaster that spills out into the dining room (your system). This vulnerability exists because Redis allows authenticated users to execute Lua scripts that can manipulate the garbage collector, leading to a use-after-free condition. This can result in remote code execution, especially in versions 8.2.1 and below.

What to do

An attacker with authenticated access could exploit this vulnerability to execute malicious code on your server, potentially gaining control over your entire Redis instance. This could lead to unauthorized access to sensitive data, manipulation of data, or complete server takeover — an absolutely devastating scenario! To mitigate this risk, upgrade Redis to version 8.2.2 immediately. In the meantime, you can prevent Lua script execution by using Access Control Lists (ACL) to restrict the EVAL and EVALSHA commands, which will help protect your environment until you apply the patch. You've got this! With these steps, you'll shore up your Redis security in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.82294 · 99.7th percentile
Weakness
CWE-416 · Use After Free
Published
2025-10-04T00:15Z
Affected products (8)
ProductVersionsFixed in
redis/redis< 6.2.206.2.20
redis/redis≥ 7.0, < 7.2.117.2.11
redis/redis≥ 7.4.0, < 7.4.67.4.6
redis/redis≥ 8.0.0, < 8.0.48.0.4
redis/redis≥ 8.2.0, < 8.2.28.2.2
lfprojects/valkey< 7.2.117.2.11
lfprojects/valkey≥ 8.0.0, < 8.0.68.0.6
lfprojects/valkey≥ 8.1.0, < 8.1.48.1.4
References (5)
EPSS history
Timeline
  • 03 OCT 19:27Z
    Redis Lua Use-After-Free may lead to remote code execution
    cvelistv5