CVE-2024-46981 HIGH

CVE-2024-46981: Redis' Lua library commands may lead to remote code execution

Vendor Redis
Product redis
Weakness CWE-416
Published January 6, 2025
Last update March 19, 2025

CVSS base score

7.0/10
Attack vector Local
Attack complexity High
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

January 6, 2025 CVE published
March 19, 2025 Record updated