CVE-2025-46818
NoneCVSS
—
EPSS
0.7%
Published
Oct 3, 2025
CISA due date
—
Cloudanix analysis
A problem in Redis lets users who are already logged in run commands as if they were other users by sending special scripts, which could allow someone to see or change information they should not access.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
An authenticated user can submit a specially crafted Lua script that manipulates LUA objects to execute arbitrary code in the security context of a different user, bypassing intended isolation in the Lua scripting subsystem.
Why it matters to the business
Attackers can escalate privileges within Redis deployments to access or modify data belonging to other users, increasing risk of unauthorized data exposure or tampering across widespread Redis and Linux environments.
How an attack unfolds
Attackers authenticate to Redis and submit malicious Lua scripts through EVAL or FUNCTION commands; groups associated with RediShell and the related CVE-2025-49844 campaign have weaponized this technique to run code under another user's context without requiring additional authentication.
How to fix it
Upgrade redis/redis to the fixed commit 9829bdbfd9e7eeb8fb6c79ce36bcc77a681824b1 (version 8.2.2) or apply package updates linux (Debian:12) 6.1.37-1, linux (Debian:13) 6.3.7-1, or Kernel (Linux) 6.1.29. As a workaround, configure ACL rules to block EVAL and FUNCTION command families for untrusted users.
How to confirm the fix worked
Confirm running version matches or exceeds the listed fixed versions, then test that crafted Lua scripts attempting cross-user operations are rejected or isolated.
Typical attack path
- Obtain valid Redis credentials
- Craft Lua script targeting cross-user object manipulation
- Invoke script via EVAL or FUNCTION command family
- Execute code in target user context
- Perform unauthorized data access or actions
How to detect it
Review Redis server logs and audit trails for repeated or anomalous EVAL/FUNCTION invocations, especially those referencing cross-user Lua object access; correlate with known RediShell patterns and similar exploitation seen in related Redis RCE campaigns.
- EVAL.*lua.*user context
- FUNCTION LOAD.*malicious script
- unusual cross-user Lua object manipulation
What your security team should do
- Prioritize upgrade to fixed Redis versions across all instances
- Apply ACL restrictions on EVAL and FUNCTION if immediate patching is delayed
- Audit existing Lua script usage and user permissions
- Monitor threat intelligence for RediShell activity targeting this vector
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:10 | valkey | 0 | 8.0.6-1.el10_0 |
| AlmaLinux:10 | valkey | 0 | 8.0.6-2.el10_1 |
| AlmaLinux:10 | valkey-devel | 0 | 8.0.6-1.el10_0 |
| AlmaLinux:10 | valkey-devel | 0 | 8.0.6-2.el10_1 |
| AlmaLinux:8 | redis | 0 | 6.2.20-1.module_el8.10.0+4056+739731b0 |
| AlmaLinux:8 | redis-devel | 0 | 6.2.20-1.module_el8.10.0+4056+739731b0 |
| AlmaLinux:8 | redis-doc | 0 | 6.2.20-1.module_el8.10.0+4056+739731b0 |
| AlmaLinux:9 | redis | 0 | 6.2.20-1.el9_6 |
| AlmaLinux:9 | redis | 0 | 7.2.11-1.module_el9.6.0+188+92104ce8 |
| AlmaLinux:9 | redis | 0 | 6.2.20-2.el9_7 |
| AlmaLinux:9 | redis-devel | 0 | 6.2.20-1.el9_6 |
| AlmaLinux:9 | redis-devel | 0 | 7.2.11-1.module_el9.6.0+188+92104ce8 |
| AlmaLinux:9 | redis-devel | 0 | 6.2.20-2.el9_7 |
| AlmaLinux:9 | redis-doc | 0 | 6.2.20-1.el9_6 |
| AlmaLinux:9 | redis-doc | 0 | 7.2.11-1.module_el9.6.0+188+92104ce8 |
| AlmaLinux:9 | redis-doc | 0 | 6.2.20-2.el9_7 |
| AlmaLinux:9 | valkey | 0 | 8.0.6-2.el9_7 |
| AlmaLinux:9 | valkey-devel | 0 | 8.0.6-2.el9_7 |
| Bitnami | keydb | 0 | 6.2.20 |
| Bitnami | redis | 0 | 6.2.20 |
| Bitnami | valkey | 0 | 6.2.20 |
| Bitnami | valkey | 0 | 7.2.11 |
| Chainguard | redis-6.2.10-benchmark | 0 | 6.2.10-r40 |
| Chainguard | redis-6.2.10-cli | 0 | 6.2.10-r40 |
| Mageia:9 | redis | 0 | 7.2.12-1.mga9 |
| SUSE:Enterprise Storage 7.1 | redis | 0 | 6.0.14-150200.6.43.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | redis | 0 | 6.0.14-150200.6.43.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | redis | 0 | 6.2.6-150400.3.40.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | redis | 0 | 6.2.6-150400.3.40.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | redis | 0 | 6.2.6-150400.3.40.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | redis7 | 0 | 7.0.8-150500.3.24.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | redis | 0 | 6.2.6-150400.3.40.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | redis7 | 0 | 7.0.8-150500.3.24.1 |
| SUSE:Linux Enterprise Module for Server Applications 15 SP6 | redis | 0 | 7.2.4-150600.3.18.1 |
| SUSE:Linux Enterprise Module for Server Applications 15 SP6 | redis7 | 0 | 7.0.8-150600.8.19.1 |
| SUSE:Linux Enterprise Module for Server Applications 15 SP6 | valkey | 0 | 8.0.6-150600.13.17.1 |
| SUSE:Linux Enterprise Module for Server Applications 15 SP7 | valkey | 0 | 8.0.6-150700.3.11.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | redis | 0 | 6.0.14-150200.6.43.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | redis | 0 | 6.2.6-150400.3.40.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | redis | 0 | 6.2.6-150400.3.40.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | redis7 | 0 | 7.0.8-150500.3.24.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | redis | 0 | 6.0.14-150200.6.43.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | redis | 0 | 6.2.6-150400.3.40.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | redis | 0 | 6.2.6-150400.3.40.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | redis7 | 0 | 7.0.8-150500.3.24.1 |
| SUSE:Manager Proxy LTS 4.3 | redis | 0 | 6.2.6-150400.3.40.1 |
| SUSE:Manager Server LTS 4.3 | redis | 0 | 6.2.6-150400.3.40.1 |
| openSUSE:Leap 15.6 | redis | 0 | 7.2.4-150600.3.18.1 |
| openSUSE:Leap 15.6 | redis7 | 0 | 7.0.8-150600.8.19.1 |
| openSUSE:Leap 15.6 | valkey | 0 | 8.0.6-150600.13.17.1 |
| openSUSE:Leap 16.0 | redis | 0 | 8.2.3-bp160.1.1 |
| openSUSE:Leap 16.0 | valkey | 0 | 8.0.6-160000.1.1 |
| openSUSE:Tumbleweed | redis | 0 | 8.2.2-1.1 |
| openSUSE:Tumbleweed | valkey | 0 | 8.1.4-1.1 |
Related vulnerabilities
- CVE-2025-49844 Redis is an open source, in-memory database that persists on disk. Also affects valkey
- CVE-2025-46819 Redis is an open source, in-memory database that persists on disk. Also affects valkey
- CVE-2025-46817 Redis is an open source, in-memory database that persists on disk. Also affects valkey
- CVE-2025-48367 Redis is an open source, in-memory database that persists on disk. Also affects valkey
- CVE-2025-32023 Redis is an open source, in-memory database that persists on disk. Also affects valkey
- CVE-2025-27151 Redis is an open source, in-memory database that persists on disk. Also affects valkey
- CVE-2025-21605 Redis is an open source, in-memory database that persists on disk. Also affects valkey
- CVE-2024-46981 Redis is an open source, in-memory database that persists on disk. Also affects redis