Skip to content
OpenAdvisories
High · 7.0 Public exploit CVE-2024-46981 EUVD-2024-42220

Redis' Lua library commands may lead to remote code execution

Published Jan 6, 2025 · Updated Mar 19, 2025 · Assigned by GitHub_M

Description

Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to manipulate the garbage collector and potentially lead to remote code execution. The problem is fixed in 7.4.2, 7.2.7, and 6.2.17. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.

Affected products

VendorProductAffectedFixed
redis redis >= 7.4.0, < 7.4.2, >= 7.2.0, < 7.2.7, < 6.2.17 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 redis 5:7.0.15-3 —
Debian 14 valkey 8.0.2+dfsg1-1 —
Debian 13 redis 5:7.0.15-3 —
Debian 13 valkey 8.0.2+dfsg1-1 —
Debian 12 redis 5:7.0.15-1~deb12u3 DSA-5856-1
Debian 11 redis 5:6.0.16-1+deb11u5 DLA-4025-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 redict No fix yet —
Ubuntu 26.04 LTS redict No fix yet —
Ubuntu 25.10 redict No fix yet —
Ubuntu 24.04 LTS redis 5:7.0.15-1ubuntu0.24.04.1 USN-7321-1
Ubuntu 24.04 LTS valkey 7.2.8+dfsg1-0ubuntu0.24.04.2 USN-7359-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS redis 5:6.0.16-1ubuntu1+esm2 USN-7321-1
Ubuntu Pro 20.04 LTS redis 5:5.0.7-2ubuntu0.1+esm3 USN-7321-1
Ubuntu Pro 18.04 LTS redis 5:4.0.9-1ubuntu0.2+esm5 USN-7321-1
Ubuntu Pro 16.04 LTS redis 2:3.0.6-1ubuntu0.4+esm3 USN-7321-1
Ubuntu Pro 14.04 LTS redis 2:2.8.4-2ubuntu0.2+esm4 USN-7321-1
ReleasePackageFixed inAdvisory
RHEL 9 redis +2 6.2.17-1.el9_5 RHSA-2025:0693, RHSA-2025:0692
RHEL 8 redis +2 6.2.17-1.module+el8.10.0+22680+748527fd RHSA-2025:0595
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS redis +2 6.2.7-1.el9_4.1 RHSA-2025:0566, RHSA-2025:0399
RHEL 9.2 EUS redis +2 6.2.7-1.el9_2.1 RHSA-2025:0398
RHEL 9.0 E4S redis +2 6.2.6-1.el9_0.1 RHSA-2025:0400
RHEL 8.8 EUS redis +2 6.2.7-1.module+el8.8.0+22725+e1c935f8.1 RHSA-2025:0640
RHEL 8.6 TUS redis +2 6.0.9-5.module+el8.6.0+22735+5bedcf81.1 RHSA-2025:0689
RHEL 8.6 E4S redis +2 6.0.9-5.module+el8.6.0+22735+5bedcf81.1 RHSA-2025:0689
RHEL 8.6 AUS redis +2 6.0.9-5.module+el8.6.0+22735+5bedcf81.1 RHSA-2025:0689
RHEL 8.4 TUS redis +2 6.0.9-5.module+el8.4.0+22739+cf3cc450.1 RHSA-2025:0685
RHEL 8.4 E4S redis +2 6.0.9-5.module+el8.4.0+22739+cf3cc450.1 RHSA-2025:0685
RHEL 8.4 AUS redis +2 6.0.9-5.module+el8.4.0+22739+cf3cc450.1 RHSA-2025:0685

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 redis +2 6.2.17-1.el9_5 ALSA-2025:0693, ALSA-2025:0692
AlmaLinux 8 redis +2 6.2.17-1.module_el8.10.0+3946+3de613d5 ALSA-2025:0595

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 redis 6.2.17-1.el9_5 RLSA-2025:0693
Rocky Linux 8 redis 6.2.17-1.module+el8.10.0+1923+5b85c6a7 RLSA-2025:0595
ReleasePackageFixed inAdvisory
SLES 15 SP6 redis 7.2.4-150600.3.6.1 SUSE-SU-2025:0163-1
SLES 15 SP6 redis7 7.0.8-150600.8.6.1 SUSE-SU-2025:0161-1
SLES 15 SP5 redis 6.2.6-150400.3.31.1 SUSE-SU-2025:0162-1
SLES 15 SP5 redis7 7.0.8-150500.3.15.1 SUSE-SU-2025:0160-1
SLES 15 SP4 redis 6.2.6-150400.3.31.1 SUSE-SU-2025:0162-1
SLES 15 SP3 redis 6.0.14-150200.6.32.1 SUSE-SU-2025:0081-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 redis 6.2.6-150400.3.31.1 SUSE-SU-2025:0162-1
SLES for SAP 15 SP5 redis7 7.0.8-150500.3.15.1 SUSE-SU-2025:0160-1
SLES for SAP 15 SP4 redis 6.2.6-150400.3.31.1 SUSE-SU-2025:0162-1
SLES for SAP 15 SP3 redis 6.0.14-150200.6.32.1 SUSE-SU-2025:0081-1
SLE HPC 15 SP5 redis 6.2.6-150400.3.31.1 SUSE-SU-2025:0162-1
SLE HPC 15 SP5 redis7 7.0.8-150500.3.15.1 SUSE-SU-2025:0160-1
SLE HPC 15 SP4 redis 6.2.6-150400.3.31.1 SUSE-SU-2025:0162-1
SLE HPC 15 SP3 redis 6.0.14-150200.6.32.1 SUSE-SU-2025:0081-1
SUSE Manager Server 4.3 redis 6.2.6-150400.3.31.1 SUSE-SU-2025:0162-1
SUSE Manager Proxy 4.3 redis 6.2.6-150400.3.31.1 SUSE-SU-2025:0162-1
SUSE Enterprise Storage 7.1 redis 6.0.14-150200.6.32.1 SUSE-SU-2025:0081-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed redis +1 8.0.2-1.1 openSUSE-SU-2025:15293-1, openSUSE-SU-2025:14638-1
openSUSE Leap 15.6 redis 7.2.4-150600.3.6.1 SUSE-SU-2025:0163-1
openSUSE Leap 15.6 redis7 7.0.8-150600.8.6.1 SUSE-SU-2025:0161-1
ReleasePackageFixed inAdvisory
Alpine v3.24 redict 7.3.2-r0 —
Alpine v3.24 redis 7.2.7-r0 —
Alpine v3.24 valkey 7.2.8-r0 —
Alpine v3.23 redict 7.3.2-r0 —
Alpine v3.23 redis 7.2.7-r0 —
Alpine v3.23 valkey 7.2.8-r0 —
Alpine v3.22 redict 7.3.2-r0 —
Alpine v3.22 redis 7.2.7-r0 —
Alpine v3.22 valkey 7.2.8-r0 —
Alpine v3.21 redict 7.3.2-r0 —
Alpine v3.21 redis 7.2.7-r0 —
Alpine v3.21 valkey 7.2.8-r0 —
Alpine v3.20 redict 7.3.2-r0 —
Alpine v3.20 redis 7.2.7-r0 —
Alpine v3.20 valkey 7.2.8-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 redis 7.2.7-r0 —
Alpine v3.18 redis 7.0.15-r2 —
Alpine v3.15 redis 6.2.18-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 redis6 +2 6.2.14-2.amzn2023.0.2 ALAS2023-2025-818

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 valkey 8.0.2-1 —
Azure Linux 2 (CBL-Mariner) redis 6.2.17-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 redis +2 6.2.17-1.el9_5 ELSA-2025-0693, ELSA-2025-0692
Oracle Linux 8 redis +2 6.2.17-1.0.1.module+el8.10.0+90491+f9002f77 ELSA-2025-0595

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 31

References