CVE-2024-31449 json
Lua library commands may lead to stack overflow and RCE in Redis
published 2024-10-06 2 y ago modified 2026-11-04 5 d ago also BIT-keydb-2024-31449 , BIT-redis-2024-31449 , BIT-valkey-2024-31449 , EUVD-2024-29337 , GHSA-whxg-wx83-85p5
- cvss
- 7.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.5%
- EPSS 4.5% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami keydb 6.3.4
- bitnami redis 6.2.16, 7.2.8, 7.4.1
- bitnami valkey 7.2.7, 8.0.1
- redis redis 6.2.16, 7.2.6, 7.4.1
- redis Debian 12 5:7.0.15-1~deb12u2
- redis Debian 14, Debian 13 5:7.0.15-2
- redict Debian 14 7.3.1+ds-1
- valkey Debian 14, Debian 13 8.0.1+dfsg1-1
debian advisories DEBIAN-CVE-2024-31449
- redis Ubuntu 24.04 LTS 5:7.0.15-1ubuntu0.24.04.4
- redis Ubuntu Pro 16.04 LTS 2:3.0.6-1ubuntu0.4+esm5
- redis Ubuntu Pro 18.04 LTS 5:4.0.9-1ubuntu0.2+esm7
- lua-bitop Ubuntu Pro 20.04 LTS 1.0.2-5ubuntu0.20.04.1~esm2
- lua-bitop Ubuntu Pro 22.04 LTS 1.0.2-5ubuntu0.22.04.1~esm2
ubuntu advisories UBUNTU-CVE-2024-31449
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- redis RHEL 9 6.2.17-1.el9_5
- redis RHEL 8 6.2.17-1.module+el8.10.0+22680+748527fd
- redis RHEL 9 7.2.6-1.module+el9.5.0+22422+63e067d8
red hat advisories RHSA-2025:0693RHSA-2025:0595RHSA-2024:10869
- redis SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 6.0.14-150200.6.32.1
- redis SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Server Applications 15 SP5 +5 more 6.2.6-150400.3.28.1
- redis7 SLE Module for Server Applications 15 SP5, openSUSE Leap 15.5 7.0.8-150500.3.12.1
- redis7 SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 7.0.8-150600.8.3.1
- redis SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 7.2.4-150600.3.3.1
suse advisories SUSE-SU-2025:0081-1SUSE-SU-2024:3575-1SUSE-SU-2024:3549-1SUSE-SU-2024:3537-1SUSE-SU-2024:3535-1
- redis openSUSE Tumbleweed 8.0.2-1.1
- valkey openSUSE Tumbleweed 8.0.1-1.1
opensuse advisories openSUSE-SU-2025:15293-1openSUSE-SU-2024:14412-1
- redis AlmaLinux 9 6.2.17-1.el9_5
- redis AlmaLinux 8 6.2.17-1.module_el8.10.0+3946+3de613d5
- redis AlmaLinux 9 7.2.6-1.module_el9.5.0+130+36ae7635
almalinux advisories ALSA-2025:0693ALSA-2025:0595ALSA-2024:10869
- redis Rocky Linux 9 6.2.17-1.el9_5
- redis Rocky Linux 8 6.2.17-1.module+el8.10.0+1923+5b85c6a7
rocky linux advisories RLSA-2025:0693RLSA-2025:0595
- redis Alpine 3.15 6.2.18-r0
- redis Alpine 3.18, Alpine 3.17 7.0.15-r1
- redis Alpine 3.19 7.2.4-r1
- redis Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 7.2.5-r1
- redict Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 7.3.1-r0
- valkey Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 7.2.7-r0
alpine advisories ALPINE-CVE-2024-31449
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- redis CBL-Mariner 2.0 6.2.14-3
- valkey Azure Linux 3.0 8.0.1-1
azure linux advisories AZL-50129AZL-52004
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-31449 updated cvss 7.0
redis: Lua library commands may lead to stack overflow and RCE in Redis
-
Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7affected: workaround, no fix planned “Will not fix”
-
Red Hat Quay 3 quay/quay-rhel8affected: workaround, no fix available
-
Red Hat Discovery 1 for RHEL 9 discovery/discovery-ui-rhel9 1.12.0-1, discovery/discovery-server-rhel9 1.12.0-1fixed: vendor fix RHSA-2025:1249
-
Red Hat Enterprise Linux AppStream (v. 8) redis 6.2.17-1.module+el8.10.0+22680+748527fdfixed: vendor fix RHSA-2025:0595
-
Red Hat Enterprise Linux AppStream (v. 9) redis 6.2.17-1.el9_5, redis 7.2.6-1.module+el9.5.0+22422+63e067d8fixed: vendor fix RHSA-2025:0693
-
Red Hat Enterprise Linux 9 valkeynot affected: component not present
-
Red Hat Enterprise Linux 10 valkeynot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 23 mo ago
Exploit prediction
4.46% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | keydb | >=2.6.0, <6.3.4 >=7.0.0 |
6.3.4 |
| bitnami | redis | >=2.6.0, <6.2.16 >=7.0.0, <7.2.8 >=7.3.0, <7.4.1 |
6.2.16 7.2.8 7.4.1 |
| bitnami | valkey | <7.2.7 >=8.0.0, <8.0.1 |
7.2.7 8.0.1 |
Affected products
- redis redis
Classification
- Weakness
- Technology feeds
References
Sources
- CVE List CVE-2024-31449
- NVD CVE-2024-31449
- OSV BIT-keydb-2024-31449
- OSV BIT-redis-2024-31449
- OSV BIT-valkey-2024-31449
- Maintainer advisory GHSA-whxg-wx83-85p5
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of redis/redis published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.