Redis' Lua library commands may lead to remote code execution (CVE-2024-46981)
CVE-2024-46981 is a critical vulnerability in Redis where an authenticated user can exploit specially crafted Lua scripts to manipulate the garbage collector, potentially leading to remote code execution. This issue affects multiple Redis versions prior to 6.2.17, 7.2.7, and 7.4.2. The vulnerability is addressed by official patches in these versions. As a workaround, administrators can restrict Lua script execution using ACL rules to prevent exploitation without immediate patching.
AI Analysis
Technical Summary
Redis, an open source in-memory database, contains a vulnerability (CVE-2024-46981) in its Lua library commands that allows an authenticated user to execute a crafted Lua script to manipulate the garbage collector, which may result in remote code execution. The vulnerability affects Redis versions before 6.2.17, 7.2.7, and 7.4.2. Official patches have been released to fix this issue. Additionally, restricting the EVAL and EVALSHA commands via ACLs can mitigate the risk by preventing Lua script execution. Red Hat advisories confirm the vulnerability and provide updated packages for affected Red Hat Enterprise Linux distributions.
Potential Impact
Successful exploitation of this vulnerability can lead to remote code execution on the Redis server by an authenticated user, posing a critical security risk. This could allow attackers to execute arbitrary code with the privileges of the Redis process, potentially compromising the host system. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
A fix is available in Redis versions 6.2.17, 7.2.7, and 7.4.2. Users should upgrade to these or later versions to remediate the vulnerability. As an interim mitigation, administrators can use Access Control Lists (ACL) to restrict or disable the EVAL and EVALSHA commands, thereby preventing execution of Lua scripts until the patch can be applied. Refer to the vendor advisories and update documentation for detailed patching instructions.
Redis' Lua library commands may lead to remote code execution (CVE-2024-46981)
Description
CVE-2024-46981 is a critical vulnerability in Redis where an authenticated user can exploit specially crafted Lua scripts to manipulate the garbage collector, potentially leading to remote code execution. This issue affects multiple Redis versions prior to 6.2.17, 7.2.7, and 7.4.2. The vulnerability is addressed by official patches in these versions. As a workaround, administrators can restrict Lua script execution using ACL rules to prevent exploitation without immediate patching.
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Redis, an open source in-memory database, contains a vulnerability (CVE-2024-46981) in its Lua library commands that allows an authenticated user to execute a crafted Lua script to manipulate the garbage collector, which may result in remote code execution. The vulnerability affects Redis versions before 6.2.17, 7.2.7, and 7.4.2. Official patches have been released to fix this issue. Additionally, restricting the EVAL and EVALSHA commands via ACLs can mitigate the risk by preventing Lua script execution. Red Hat advisories confirm the vulnerability and provide updated packages for affected Red Hat Enterprise Linux distributions.
Potential Impact
Successful exploitation of this vulnerability can lead to remote code execution on the Redis server by an authenticated user, posing a critical security risk. This could allow attackers to execute arbitrary code with the privileges of the Redis process, potentially compromising the host system. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
A fix is available in Redis versions 6.2.17, 7.2.7, and 7.4.2. Users should upgrade to these or later versions to remediate the vulnerability. As an interim mitigation, administrators can use Access Control Lists (ACL) to restrict or disable the EVAL and EVALSHA commands, thereby preventing execution of Lua scripts until the patch can be applied. Refer to the vendor advisories and update documentation for detailed patching instructions.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2025:0689
- Cve Count
- 1
Threat ID: 6a419cba27e9c79719abeb2b
Added to database: 06/28/2026, 22:14:18 UTC
Last enriched: 09/08/2026, 15:11:18 UTC
Last updated: 09/10/2026, 19:36:48 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.