CVE-2024-46981

Redis' Lua library commands may lead to remote code execution

Published Jan 6, 2025 CVSS 3.1 · 7 High EPSS 8.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4025-1 redis security update
Debian DSA Debian DSA DSA-5856-1 redis security update
Ubuntu USN Ubuntu USN USN-7321-1 Redis vulnerabilities
Ubuntu USN Ubuntu USN USN-7359-1 Valkey vulnerabilities
History
Type Values Removed Values Added
First Time appeared Debian
Debian debian Linux
Redis
Redis redis
CPEs cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
Vendors & Products Debian
Debian debian Linux
Redis
Redis redis
Type Values Removed Values Added
Metrics epss

{'score': 0.73555}

epss

{'score': 0.70644}

Type Values Removed Values Added
First Time appeared Redhat
Redhat discovery
Redhat enterprise Linux
Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Eus
Redhat rhel Tus
CPEs cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/a:redhat:rhel_aus:8.4
cpe:/a:redhat:rhel_aus:8.6
cpe:/a:redhat:rhel_e4s:8.4
cpe:/a:redhat:rhel_e4s:8.6
cpe:/a:redhat:rhel_e4s:9.0
cpe:/a:redhat:rhel_eus:8.8
cpe:/a:redhat:rhel_eus:9.2
cpe:/a:redhat:rhel_eus:9.4
cpe:/a:redhat:rhel_tus:8.4
cpe:/a:redhat:rhel_tus:8.6
cpe:/o:redhat:discovery:1.0::el9
Vendors & Products Redhat
Redhat discovery
Redhat enterprise Linux
Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Eus
Redhat rhel Tus
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Redis' Lua library commands may lead to remote code execution
Weaknesses CWE-416
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 19, 2025, 8:14 PM
Reserved
Sep 16, 2024, 4:10 PM
Status
Analyzed
Published
Jan 6, 2025, 10:15 PM
Modified
Jun 17, 2026, 7:56 AM
Severity
Important
Public date
Jan 6, 2025, 9:11 PM