CVE-2025-46819
NoneCVSS
—
EPSS
1.1%
Published
Oct 3, 2025
CISA due date
—
Cloudanix analysis
A problem in the Redis database lets certain logged-in users run commands that can crash the system or peek at data they should not see, potentially causing service interruptions.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Network Service
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
An authenticated user can supply a malicious Lua script that performs an out-of-bounds memory read or triggers a crash through insufficient bounds checking in Lua script handling present in all Redis versions with Lua scripting enabled.
Why it matters to the business
Redis deployments face denial-of-service outages and possible memory disclosure that can interrupt dependent applications and services; the presence of weaponized exploits and named threat actor activity increases urgency for organizations relying on Redis.
How an attack unfolds
An attacker with valid Redis credentials crafts a malicious Lua script and submits it using EVAL or FUNCTION commands; the script triggers memory corruption leading to data leakage or server crash. Groups associated with RediShell and related Redis RCE campaigns have been observed leveraging similar techniques.
How to fix it
Upgrade redis/redis to the fixed commit 9829bdbfd9e7eeb8fb6c79ce36bcc77a681824b1 (version 8.2.2) or later. As a workaround without patching, apply ACL rules that block both the EVAL and FUNCTION command families for untrusted users.
How to confirm the fix worked
Confirm the running Redis binary reports version 8.2.2 or newer; verify ACL policies restrict EVAL and FUNCTION when the workaround is used; attempt controlled Lua execution to ensure crashes no longer occur.
Typical attack path
- Obtain valid Redis credentials
- Prepare a specially crafted Lua script
- Submit the script via EVAL or FUNCTION commands
- Trigger out-of-bounds read or server crash resulting in denial of service
How to detect it
Review Redis logs for repeated or anomalous EVAL and FUNCTION command usage; correlate with known threat actor patterns such as RediShell activity; inspect for unexpected process restarts or Lua-related crashes after script execution.
What your security team should do
- Upgrade all Redis instances to the fixed version immediately
- Apply ACL restrictions on Lua commands until patching is complete
- Audit Redis access controls and remove unnecessary script execution privileges
- Monitor Redis logs and process behavior for Lua-related anomalies
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 read out-of-bound data or crash the server and subsequent denial of service. The problem exists in all versions of Redis with Lua scripting. This issue is fixed in version 8.2.2. To workaround this issue 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-46818 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