CVE-2025-46818: Redis: Authenticated users can execute LUA scripts as a different user
Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate different LUA objects and potentially run their own code in the context of another user. The problem exists in all versions of Redis with LUA scripting. This issue is fixed in version 8.2.2. A 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 block a script by restricting both the EVAL and FUNCTION command families.
Other sources
Redis: Authenticated users can execute LUA scripts as a different user
— Microsoft
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-46818?
CVE-2025-46818 has a high severity rating due to the potential for authenticated users to execute arbitrary code.
How do I fix CVE-2025-46818?
To mitigate CVE-2025-46818, upgrade Redis to version 8.2.2 or higher.
Who is affected by CVE-2025-46818?
CVE-2025-46818 affects all Redis versions up to and including 8.2.1.
What type of vulnerability is CVE-2025-46818?
CVE-2025-46818 is a code execution vulnerability that can be exploited through crafted Lua scripts.
Can CVE-2025-46818 be exploited remotely?
CVE-2025-46818 requires authentication, but it can potentially be exploited by any authenticated user to run code in the context of another user.