Valkey: Redis Lua Use-After-Free may lead to remote code execution (CVE-2025-49844)
Redis versions 7.2.10 and earlier, 8.0.0 through 8.0.5, and 8.1.0 through 8.1.3 contain a use-after-free vulnerability in the Lua scripting engine. An authenticated user can exploit this by submitting a crafted Lua script that manipulates the garbage collector, potentially leading to remote code execution. This vulnerability is fixed in Redis version 8.2.2. As a workaround, administrators can restrict Lua script execution using ACLs to disable EVAL and EVALSHA commands.
AI Analysis
Technical Summary
Redis, an open source in-memory database, has a use-after-free vulnerability in its Lua scripting engine affecting versions <7.2.11, >=8.0.0 <8.0.6, and >=8.1.0 <8.1.4. Authenticated users can craft Lua scripts that manipulate the garbage collector to trigger a use-after-free condition, which may lead to remote code execution. The issue is resolved in version 8.2.2. Mitigation without patching involves restricting Lua script execution via ACLs.
Potential Impact
Successful exploitation allows an authenticated user to execute arbitrary code remotely on the Redis server, potentially compromising the system. This elevates the risk to critical severity due to the possibility of full system compromise.
Mitigation Recommendations
A patch is available and the issue is fixed in Redis version 8.2.2. Users should upgrade to this version to fully remediate the vulnerability. As a temporary workaround, administrators can prevent execution of Lua scripts by restricting the EVAL and EVALSHA commands using Redis ACLs. This limits the attack surface until patching is performed.
Valkey: Redis Lua Use-After-Free may lead to remote code execution (CVE-2025-49844)
Description
Redis versions 7.2.10 and earlier, 8.0.0 through 8.0.5, and 8.1.0 through 8.1.3 contain a use-after-free vulnerability in the Lua scripting engine. An authenticated user can exploit this by submitting a crafted Lua script that manipulates the garbage collector, potentially leading to remote code execution. This vulnerability is fixed in Redis version 8.2.2. As a workaround, administrators can restrict Lua script execution using ACLs to disable EVAL and EVALSHA commands.
Affected software
pkg:bitnami/valkeyRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Redis, an open source in-memory database, has a use-after-free vulnerability in its Lua scripting engine affecting versions <7.2.11, >=8.0.0 <8.0.6, and >=8.1.0 <8.1.4. Authenticated users can craft Lua scripts that manipulate the garbage collector to trigger a use-after-free condition, which may lead to remote code execution. The issue is resolved in version 8.2.2. Mitigation without patching involves restricting Lua script execution via ACLs.
Potential Impact
Successful exploitation allows an authenticated user to execute arbitrary code remotely on the Redis server, potentially compromising the system. This elevates the risk to critical severity due to the possibility of full system compromise.
Mitigation Recommendations
A patch is available and the issue is fixed in Redis version 8.2.2. Users should upgrade to this version to fully remediate the vulnerability. As a temporary workaround, administrators can prevent execution of Lua scripts by restricting the EVAL and EVALSHA commands using Redis ACLs. This limits the attack surface until patching is performed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-valkey-2025-49844
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2025-49844"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- Critical
Patch Information
Threat ID: 6aa005b3acd9273b49ab58ab
Added to database: 09/08/2026, 12:55:15 UTC
Last enriched: 09/08/2026, 13:19:20 UTC
Last updated: 09/10/2026, 19:36:50 UTC
Views: 5
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.
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.