CVE-2024-46981 json
Redis' Lua library commands may lead to remote code execution
published 2025-01-06 22 mo ago modified 2026-09-08 2 mo ago also BIT-keydb-2024-46981 , BIT-redis-2024-46981 , BIT-valkey-2024-46981 , EUVD-2024-42220 , GHSA-39h2-x6c4-6w4c
- cvss
- 7.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 8.2%
- EPSS 8.2% chance of exploitation in 30 days, percentile 94%
- 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 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.
Patch / fix
- bitnami keydb 6.3.4
- bitnami redis 6.2.17, 7.2.8, 7.4.2
- bitnami valkey 8.0.2
- redis redis 6.2.17, 7.2.7, 7.4.2
- redislabs redis 6.2.17, 7.2.7, 7.4.2
- lfprojects valkey 8.0.2
- linuxfoundation valkey 8.0.2
- valkey-io valkey 8.0.2
- redict redict 7.3.2
- redis Debian 12 5:7.0.15-1~deb12u3
- redis Debian 14, Debian 13 5:7.0.15-3
- redict Debian 14 7.3.2+ds-1
- valkey Debian 14, Debian 13 8.0.2+dfsg1-1
debian advisories DEBIAN-CVE-2024-46981
- redis Ubuntu 24.04 LTS 5:7.0.15-1ubuntu0.24.04.1
- valkey Ubuntu 24.04 LTS 7.2.8+dfsg1-0ubuntu0.24.04.2
- redis Ubuntu Pro 14.04 LTS 2:2.8.4-2ubuntu0.2+esm4
- redis Ubuntu Pro 16.04 LTS 2:3.0.6-1ubuntu0.4+esm3
- redis Ubuntu Pro 18.04 LTS 5:4.0.9-1ubuntu0.2+esm5
- redis Ubuntu Pro 20.04 LTS 5:5.0.7-2ubuntu0.1+esm3
- redis Ubuntu Pro 22.04 LTS 5:6.0.16-1ubuntu1+esm2
ubuntu advisories UBUNTU-CVE-2024-46981
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 9 7.2.7-1.module+el9.5.0+22705+3d861c1c
- redis RHEL 8 6.2.17-1.module+el8.10.0+22680+748527fd
- redis RHEL 8.6 TUS, RHEL 8.6 E4S, RHEL 8.6 AUS 6.0.9-5.module+el8.6.0+22735+5bedcf81.1
- redis RHEL 8.4 TUS, RHEL 8.4 E4S, RHEL 8.4 AUS 6.0.9-5.module+el8.4.0+22739+cf3cc450.1
- redis RHEL 8.8 EUS 6.2.7-1.module+el8.8.0+22725+e1c935f8.1
- redis RHEL 9.4 EUS 7.0.12-1.module+el9.4.0+22724+5f7cf862.2
- redis RHEL 9.4 EUS 6.2.7-1.el9_4.1
red hat advisories RHSA-2025:0693RHSA-2025:0689RHSA-2025:0692RHSA-2025:0685RHSA-2025:0640RHSA-2025:0595
- redis SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 7.2.4-150600.3.6.1
- redis SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +7 more 6.2.6-150400.3.31.1
- redis7 SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 7.0.8-150600.8.6.1
- redis7 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 7.0.8-150500.3.15.1
- 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
suse advisories SUSE-SU-2025:0163-1SUSE-SU-2025:0162-1SUSE-SU-2025:0161-1SUSE-SU-2025:0160-1SUSE-SU-2025:0081-1
- redis openSUSE Tumbleweed 8.0.2-1.1
- valkey openSUSE Tumbleweed 8.0.2-1.1
opensuse advisories openSUSE-SU-2025:15293-1openSUSE-SU-2025:14638-1
- redis AlmaLinux 9 7.2.7-1.module_el9.5.0+134+2e645600
- redis AlmaLinux 9 6.2.17-1.el9_5
- redis AlmaLinux 8 6.2.17-1.module_el8.10.0+3946+3de613d5
almalinux advisories ALSA-2025:0692ALSA-2025:0693ALSA-2025:0595
- redis Rocky Linux 9 7.2.7-1.module+el9.5.0+30204+5d6debe1
- 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:0692RLSA-2025:0693RLSA-2025:0595
- redis Alpine 3.15 6.2.18-r0
- redis Alpine 3.18 7.0.15-r2
- redis Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 7.2.7-r0
- redict Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 7.3.2-r0
- valkey Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 7.2.8-r0
alpine advisories ALPINE-CVE-2024-46981
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.17-1
- valkey Azure Linux 3.0 8.0.2-1
azure linux advisories AZL-54969AZL-55286
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-46981 updated cvss 7.0
redis: Redis' Lua library commands may lead to remote code execution
-
Red Hat OpenShift Lightspeed lightspeed-service-api-rhel9affected: workaround, no fix available “A 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.”
-
Red Hat Enterprise Linux AI (RHEL AI) bootc-amd-rhel9, bootc-azure-amd-rhel9, instructlab-amd-rhel9affected: workaround, no fix planned “A 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.”
-
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 “A 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.” RHSA-2025:1249
-
Red Hat Quay v3 quay/quay-rhel8 v3.10.9-2, quay/quay-rhel8 v3.13.4-6, quay/clair-rhel8 v3.10.9-1, quay/clair-rhel8 v3.13.4-2, quay/quay-builder-rhel8 v3.10.9-2, quay/quay-builder-rhel8 v3.13.4-2, +14 morefixed: vendor fix “A 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.” RHBA-2025:1079
-
Red Hat Enterprise Linux AppStream (v. 8) redis 6.2.17-1.module+el8.10.0+22680+748527fdfixed: vendor fix “A 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.” RHSA-2025:0595
-
Red Hat Enterprise Linux AppStream (v. 9) redis 6.2.17-1.el9_5, redis 7.2.7-1.module+el9.5.0+22705+3d861c1cfixed: vendor fix “A 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.” RHSA-2025:0693
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) redis 6.0.9-5.module+el8.4.0+22739+cf3cc450.1fixed: vendor fix “A 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.” RHSA-2025:0685
-
Red Hat Enterprise Linux AppStream AUS (v.8.6) redis 6.0.9-5.module+el8.6.0+22735+5bedcf81.1fixed: vendor fix “A 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.” RHSA-2025:0689
show 9 moreshow fewer
-
Red Hat Enterprise Linux AppStream E4S (v.8.4) redis 6.0.9-5.module+el8.4.0+22739+cf3cc450.1fixed: vendor fix “A 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.” RHSA-2025:0685
-
Red Hat Enterprise Linux AppStream E4S (v.8.6) redis 6.0.9-5.module+el8.6.0+22735+5bedcf81.1fixed: vendor fix “A 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.” RHSA-2025:0689
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) redis 6.2.6-1.el9_0.1fixed: vendor fix “A 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.” RHSA-2025:0400
-
Red Hat Enterprise Linux AppStream EUS (v.8.8) redis 6.2.7-1.module+el8.8.0+22725+e1c935f8.1fixed: vendor fix “A 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.” RHSA-2025:0640
-
Red Hat Enterprise Linux AppStream EUS (v.9.2) redis 6.2.7-1.el9_2.1fixed: vendor fix “A 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.” RHSA-2025:0398
-
Red Hat Enterprise Linux AppStream EUS (v.9.4) redis 6.2.7-1.el9_4.1, redis 7.0.12-1.module+el9.4.0+22724+5f7cf862.2fixed: vendor fix “A 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.” RHSA-2025:0399
-
Red Hat Enterprise Linux AppStream TUS (v.8.4) redis 6.0.9-5.module+el8.4.0+22739+cf3cc450.1fixed: vendor fix “A 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.” RHSA-2025:0685
-
Red Hat Enterprise Linux AppStream TUS (v.8.6) redis 6.0.9-5.module+el8.6.0+22735+5bedcf81.1fixed: vendor fix “A 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.” RHSA-2025:0689
-
Red Hat Ansible Automation Platform 1.2 ansible-tower Red Hat Fuse 7 io.hawt-hawtio-integration io.hawt-hawtio-integrationnot 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
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 22 mo ago
Exploit prediction
8.18% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- vicarius.io https://www.vicarius.io/vsociety/posts/cve-2024-46981-detect-redis-vulnerability referenced PoC, tagged "exploit" by a source, unverified
- vicarius.io https://www.vicarius.io/vsociety/posts/cve-2024-46981-mitigate-redis-vulnerability referenced PoC, tagged "exploit" by a source, unverified
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 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | keydb | <6.3.4 >=7.2.0 |
6.3.4 |
| bitnami | redis | <6.2.17 >=7.2.0, <7.2.8 >=7.4.0, <7.4.2 |
6.2.17 7.2.8 7.4.2 |
| bitnami | valkey | <8.0.2 |
8.0.2 |
Affected products
- redis redis
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
vicarius.io
/vsociety/posts/cve-2024-46981-detect-redis-vulnerability
exploit, third-party-advisory, advisory
-
vicarius.io
/vsociety/posts/cve-2024-46981-mitigate-redis-vulnerability
exploit, third-party-advisory, advisory
-
github.com
/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c
vendor-advisory, advisory
-
github.com
/redis/redis/releases/tag/6.2.17
release-notes, article
-
github.com
/redis/redis/releases/tag/7.2.7
release-notes, article
-
github.com
/redis/redis/releases/tag/7.4.2
release-notes, article
-
lists.debian.org
/debian-lts-announce/2025/01/msg00018.html
mailing-list, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-46981
web
-
codeberg.org
/redict/redict/releases/tag/7.3.2
web
-
github.com
/valkey-io/valkey/releases/tag/8.0.2
web
-
redict.io
/posts/2025-01-08-redict-7.3.2-released
web
Sources
- CVE List CVE-2024-46981
- NVD CVE-2024-46981
- OSV BIT-keydb-2024-46981
- OSV BIT-redis-2024-46981
- OSV BIT-valkey-2024-46981
- Maintainer advisory GHSA-39h2-x6c4-6w4c
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.