CVE-2024-46981

published 6 Jan 2025 · updated 13 Aug 2026

Redis' Lua library commands may lead to remote code execution

7.0HighCVSS 7.0EPSS 8%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 8%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Redisredis<6.2.17, >=7.2.0 <7.2.7, >=7.4.0 <7.4.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Redis, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-46981 severity on Zeptric[![CVE-2024-46981](https://zeptric.io/badge/cve/CVE-2024-46981.svg)](https://zeptric.io/cve/CVE-2024-46981)