Valkey: Redis: Authenticated users can execute LUA scripts as a different user (CVE-2025-46818)
Description
Redis versions 7.2.11 and earlier, as well as certain 8.x versions before 8.2.2, contain a vulnerability that allows authenticated users to execute Lua scripts in the context of another user. This issue affects all Redis versions with Lua scripting enabled. The vulnerability is fixed in Redis version 8.2.2. A workaround is to restrict Lua script execution using ACLs by blocking the EVAL and FUNCTION command families.
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 is an open source in-memory database that supports Lua scripting. Versions <7.2.11, >=8.0.0 <8.0.6, and >=8.1.0 <8.1.4 allow an authenticated user to craft Lua scripts that manipulate Lua objects and potentially execute code as a different user. This vulnerability affects all Redis versions with Lua scripting enabled. The issue is resolved in version 8.2.2. Mitigation without patching involves using ACLs to block Lua script execution commands (EVAL and FUNCTION).
Potential Impact
An authenticated user can exploit this vulnerability to execute Lua scripts under the context of another user, potentially leading to unauthorized code execution and privilege escalation within the Redis environment.
Mitigation Recommendations
A patch is available in Redis version 8.2.2 and should be applied to remediate this vulnerability. Until patching, administrators can mitigate the risk by using ACLs to restrict execution of Lua scripts by blocking the EVAL and FUNCTION command families. This workaround prevents exploitation without requiring an immediate patch of the redis-server executable.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-valkey-2025-46818
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2025-46818"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- High
Patch Information
Threat ID: 6aa005b3acd9273b49ab58b1
Added to database: 09/08/2026, 12:55:15 UTC
Last enriched: 09/08/2026, 13:19:49 UTC
Last updated: 10/23/2026, 15:10:09 UTC
Views: 37
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.