Skip to content
OpenAdvisories
High · 7.0 Public exploit CVE-2024-31449 EUVD-2024-29337

Lua library commands may lead to stack overflow and RCE in Redis

Published Oct 7, 2024 · Updated Nov 3, 2026 · 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 trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected products

VendorProductAffectedFixed
redis redis >= 2.6, < 6.2.16, >= 7.0.0, < 7.2.6, >= 7.3.0, < 7.4.1 —

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-2 —
Debian 14 valkey 8.0.1+dfsg1-1 —
Debian 13 redis 5:7.0.15-2 —
Debian 13 valkey 8.0.1+dfsg1-1 —
Debian 12 redis 5:7.0.15-1~deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 lua-bitop No fix yet —
Ubuntu 26.04 LTS lua-bitop No fix yet —
Ubuntu 25.10 lua-bitop No fix yet —
Ubuntu 24.04 LTS lua-bitop No fix yet —
Ubuntu 24.04 LTS redis 5:7.0.15-1ubuntu0.24.04.4 —
Ubuntu 18.04 LTS lua-bitop No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS lua-bitop No fix yet —
Ubuntu Pro 22.04 LTS lua-bitop 1.0.2-5ubuntu0.22.04.1~esm2 —
Ubuntu Pro 20.04 LTS lua-bitop 1.0.2-5ubuntu0.20.04.1~esm2 —
Ubuntu Pro 18.04 LTS redis 5:4.0.9-1ubuntu0.2+esm7 —
Ubuntu Pro 16.04 LTS redis 2:3.0.6-1ubuntu0.4+esm5 —
ReleasePackageFixed inAdvisory
RHEL 9 redis +2 6.2.17-1.el9_5 RHSA-2025:0693, RHSA-2024:10869
RHEL 8 redis +2 6.2.17-1.module+el8.10.0+22680+748527fd RHSA-2025:0595

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 redis +2 6.2.17-1.el9_5 ALSA-2025:0693, ALSA-2024:10869
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.3.1 SUSE-SU-2024:3535-1
SLES 15 SP6 redis7 7.0.8-150600.8.3.1 SUSE-SU-2024:3537-1
SLES 15 SP5 redis 6.2.6-150400.3.28.1 SUSE-SU-2024:3575-1
SLES 15 SP5 redis7 7.0.8-150500.3.12.1 SUSE-SU-2024:3549-1
SLES 15 SP4 redis 6.2.6-150400.3.28.1 SUSE-SU-2024:3575-1
SLES 15 SP3 redis 6.0.14-150200.6.32.1 SUSE-SU-2025:0081-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 redis 6.2.6-150400.3.28.1 SUSE-SU-2024:3575-1
SLES for SAP 15 SP3 redis 6.0.14-150200.6.32.1 SUSE-SU-2025:0081-1
SLE HPC 15 SP4 redis 6.2.6-150400.3.28.1 SUSE-SU-2024:3575-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.28.1 SUSE-SU-2024:3575-1
SUSE Manager Proxy 4.3 redis 6.2.6-150400.3.28.1 SUSE-SU-2024:3575-1
SUSE Enterprise Storage 7.1 redis 6.0.14-150200.6.32.1 SUSE-SU-2025:0081-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed redis 8.0.2-1.1 openSUSE-SU-2025:15293-1
openSUSE Tumbleweed valkey 8.0.1-1.1 openSUSE-SU-2024:14412-1
openSUSE Leap 15.6 redis 7.2.4-150600.3.3.1 SUSE-SU-2024:3535-1
openSUSE Leap 15.6 redis7 7.0.8-150600.8.3.1 SUSE-SU-2024:3537-1
openSUSE Leap 15.5 redis 6.2.6-150400.3.28.1 SUSE-SU-2024:3575-1
openSUSE Leap 15.5 redis7 7.0.8-150500.3.12.1 SUSE-SU-2024:3549-1
ReleasePackageFixed inAdvisory
Alpine v3.24 redict 7.3.1-r0 —
Alpine v3.24 redis 7.2.5-r1 —
Alpine v3.24 valkey 7.2.7-r0 —
Alpine v3.23 redict 7.3.1-r0 —
Alpine v3.23 redis 7.2.5-r1 —
Alpine v3.23 valkey 7.2.7-r0 —
Alpine v3.22 redict 7.3.1-r0 —
Alpine v3.22 redis 7.2.5-r1 —
Alpine v3.22 valkey 7.2.7-r0 —
Alpine v3.21 redict 7.3.1-r0 —
Alpine v3.21 redis 7.2.5-r1 —
Alpine v3.21 valkey 7.2.7-r0 —
Alpine v3.20 redict 7.3.1-r0 —
Alpine v3.20 redis 7.2.5-r1 —
Alpine v3.20 valkey 7.2.7-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 redis 7.2.4-r1 —
Alpine v3.18 redis 7.0.15-r1 —
Alpine v3.17 redis 7.0.15-r1 —
Alpine v3.15 redis 6.2.18-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 redis6 +2 6.2.14-2.amzn2023.0.1 ALAS2023-2024-717

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 valkey 8.0.1-1 —
Azure Linux 2 (CBL-Mariner) redis 6.2.14-3 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 redis +2 6.2.17-1.el9_5 ELSA-2025-0693, ELSA-2024-10869
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 1 repository

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

Advisories 20

References