Skip to main content
EPSS 8.2%top 5.5%

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

0
Critical
Published: 01/08/2025 (01/08/2025, 07:20:24 UTC)
Source: GCVE Database
Product: redis

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

Affected versions
>=6.2.0 <6.2.7>=7.0.0 <7.2.7<6.2.17>=7.2.0 <7.2.8>=7.4.0 <7.4.2>=6.2.0 <6.2.17>=7.2.0 <7.2.7

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 15:11:18 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses