cve.bz

CVE-2024-46981 Use After Free

9.8 criticalExploit referenceEPSS 8.2%

Critical (9.8). EPSS 8.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
8.2% (unchanged from 8.2% a week ago; 8.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-01-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-46981 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-46981?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-46981?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-46981 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redis:redisfrom 6.2.0 before 6.2.17
redis:redisfrom 7.2.0 before 7.2.7
redis:redisfrom 7.4.0 before 7.4.2
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11redis5:6.0.16-1+deb11u5DLA-4025-1
Debian12redis5:7.0.15-1~deb12u3DEBIAN-CVE-2024-46981 DSA-5856-1
Debian13, 14redis5:7.0.15-3DEBIAN-CVE-2024-46981
Debian13, 14valkey8.0.2+dfsg1-1DEBIAN-CVE-2024-46981
Debian14redict7.3.2+ds-1DEBIAN-CVE-2024-46981
Ubuntu24.04:LTSredis5:7.0.15-1ubuntu0.24.04.1UBUNTU-CVE-2024-46981 USN-7321-1
Ubuntu24.04:LTSvalkey7.2.8+dfsg1-0ubuntu0.24.04.2UBUNTU-CVE-2024-46981 USN-7359-1
Ubuntu25.10, 26.04:LTS, 26.10redictno fix listedUBUNTU-CVE-2024-46981
UbuntuPro:14.04:LTSredis2:2.8.4-2ubuntu0.2+esm4UBUNTU-CVE-2024-46981 USN-7321-1
UbuntuPro:16.04:LTSredis2:3.0.6-1ubuntu0.4+esm3UBUNTU-CVE-2024-46981 USN-7321-1
UbuntuPro:18.04:LTSredis5:4.0.9-1ubuntu0.2+esm5UBUNTU-CVE-2024-46981 USN-7321-1
UbuntuPro:20.04:LTSredis5:5.0.7-2ubuntu0.1+esm3UBUNTU-CVE-2024-46981 USN-7321-1
UbuntuPro:22.04:LTSredis5:6.0.16-1ubuntu1+esm2UBUNTU-CVE-2024-46981 USN-7321-1
Red Hatenterprise_linux:8::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.17-1.module+el8.10.0+22680+748527fdRHSA-2025:0595
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.17-1.el9_5RHSA-2025:0693
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:7.2.7-1.module+el9.5.0+22705+3d861c1cRHSA-2025:0692
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamredis, redis-doc, redis-devel and 2 more0:6.0.9-5.module+el8.4.0+22739+cf3cc450.1RHSA-2025:0685
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamredis, redis-doc, redis-devel and 2 more0:6.0.9-5.module+el8.6.0+22735+5bedcf81.1RHSA-2025:0689
Red Hatrhel_e4s:9.0::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.6-1.el9_0.1RHSA-2025:0400
Red Hatrhel_eus:8.8::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.7-1.module+el8.8.0+22725+e1c935f8.1RHSA-2025:0640
Red Hatrhel_eus:9.2::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.7-1.el9_2.1RHSA-2025:0398
Red Hatrhel_eus:9.4::appstreamredis, redis-doc, redis-devel and 2 more0:6.2.7-1.el9_4.1RHSA-2025:0399
Red Hatrhel_eus:9.4::appstreamredis, redis-doc, redis-devel and 2 more0:7.0.12-1.module+el9.4.0+22724+5f7cf862.2RHSA-2025:0566
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 moreredis6.0.14-150200.6.32.1SUSE-SU-2025:0081-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 moreredis6.2.6-150400.3.31.1SUSE-SU-2025:0162-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 moreredis77.0.8-150500.3.15.1SUSE-SU-2025:0160-1
SUSELinux Enterprise Module for Server Applications 15 SP6redis7.2.4-150600.3.6.1SUSE-SU-2025:0163-1
SUSELinux Enterprise Module for Server Applications 15 SP6redis77.0.8-150600.8.6.1SUSE-SU-2025:0161-1
openSUSELeap 15.6redis7.2.4-150600.3.6.1SUSE-SU-2025:0163-1
openSUSELeap 15.6redis77.0.8-150600.8.6.1SUSE-SU-2025:0161-1
openSUSETumbleweedredis8.0.2-1.1openSUSE-SU-2025:15293-1
openSUSETumbleweedvalkey8.0.2-1.1openSUSE-SU-2025:14638-1
AlmaLinux8redis, redis-doc, redis-devel6.2.17-1.module_el8.10.0+3946+3de613d5ALSA-2025:0595
AlmaLinux9redis, redis-doc, redis-devel6.2.17-1.el9_5ALSA-2025:0693
AlmaLinux9redis, redis-doc, redis-devel7.2.7-1.module_el9.5.0+134+2e645600ALSA-2025:0692
Rocky Linux8redis0:6.2.17-1.module+el8.10.0+1923+5b85c6a7RLSA-2025:0595
Rocky Linux9redis0:6.2.17-1.el9_5RLSA-2025:0693
Alpinev3.15redis6.2.18-r0ALPINE-CVE-2024-46981
Alpinev3.18redis7.0.15-r2ALPINE-CVE-2024-46981
Alpinev3.19, v3.20, v3.21 and 3 moreredis7.2.7-r0ALPINE-CVE-2024-46981
Alpinev3.20, v3.21, v3.22 and 2 moreredict7.3.2-r0ALPINE-CVE-2024-46981
Alpinev3.20, v3.21, v3.22 and 2 morevalkey7.2.8-r0ALPINE-CVE-2024-46981
Azure Linux2redis6.2.17-1AZL-54969
Azure Linux3valkey8.0.2-1AZL-55286
Alpaquita23redis7.0.15-r2BELL-CVE-2024-46981
Alpaquitastreamredis7.2.7-r0BELL-CVE-2024-46981

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The problem exists in all versions of Redis with Lua scripting.

This vulnerability in Redis is classified as high severity rather than moderate due to its potential impact and exploitation scope. By manipulating the Lua garbage collector through crafted scripts, an authenticated attacker can achieve remote code execution (RCE), allowing them to execute arbitrary commands on the host system. This compromises not only the integrity and confidentiality of the data stored in Redis but also the underlying server itself. Furthermore, the exploitation does not require direct access to the server binary, making it feasible for attackers to execute through legitimate, albeit malicious, commands.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Discovery 1 for RHEL 9discovery/discovery-server-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Discovery 1 for RHEL 9discovery/discovery-ui-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Red Hat Enterprise Linux 8redis:6-8100020250113083959.489197e6Fixed 2025-01-22RHSA-2025:0595
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportredis:6-8040020250123095605.522a0ee4Fixed 2025-01-27RHSA-2025:0685
Red Hat Enterprise Linux 8.4 Telecommunications Update Serviceredis:6-8040020250123095605.522a0ee4Fixed 2025-01-27RHSA-2025:0685
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsredis:6-8040020250123095605.522a0ee4Fixed 2025-01-27RHSA-2025:0685
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportredis:6-8060020250122114132.ad008a3aFixed 2025-01-27RHSA-2025:0689
Red Hat Enterprise Linux 8.6 Telecommunications Update Serviceredis:6-8060020250122114132.ad008a3aFixed 2025-01-27RHSA-2025:0689
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsredis:6-8060020250122114132.ad008a3aFixed 2025-01-27RHSA-2025:0689
Red Hat Enterprise Linux 8.8 Extended Update Supportredis:6-8080020250120175236.63b34585Fixed 2025-01-23RHSA-2025:0640
Red Hat Enterprise Linux 9redis:7-9050020250115104757.9Fixed 2025-01-27RHSA-2025:0692
Red Hat Enterprise Linux 9redis-0:6.2.17-1.el9_5Fixed 2025-01-27RHSA-2025:0693
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsredis-0:6.2.6-1.el9_0.1Fixed 2025-01-20RHSA-2025:0400
Red Hat Enterprise Linux 9.2 Extended Update Supportredis-0:6.2.7-1.el9_2.1Fixed 2025-01-20RHSA-2025:0398
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-service-api-rhel9Affected
Red Hat Ansible Automation Platform 1.2ansible-towerNot affected
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-amd-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-azure-amd-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/instructlab-amd-rhel9Will not fix
Red Hat Fuse 7io.hawt-hawtio-integrationNot affected
22 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-46981.

References

Check your stackJSON