Cloudanix VulnDB

CVE-2025-46817

None

CVSS

—

EPSS

3.9%

Published

Oct 3, 2025

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in Redis lets users who already have login access run special code that could let them take over the entire database server.

Weaponized
Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Remote Code Execution
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

An authenticated user can submit a specially crafted Lua script that triggers an integer overflow in the Lua scripting engine, resulting in memory corruption that can be leveraged for remote code execution.

Why it matters to the business

Attackers with valid credentials can gain full control of the Redis server, exposing all stored data, enabling lateral movement, and providing a foothold for further attacks. Weaponized exploits and active threat actor interest increase urgency for organizations running affected versions.

How an attack unfolds

An attacker with valid Redis credentials crafts a malicious Lua script designed to cause integer overflow during script processing. The script is executed through the Redis Lua interface, triggering memory corruption that allows arbitrary code execution. This vulnerability is actively exploited in the RediShell campaign and shares similarities with CVE-2025-49844 targeting Valkey and Redis.

How to fix it

Upgrade all affected Redis instances to version 8.2.2 or apply the patch from commit 9829bdbfd9e7eeb8fb6c79ce36bcc77a681824b1. Restrict Lua scripting privileges to trusted users only until upgrades are complete.

How to confirm the fix worked

Confirm the running Redis version is 8.2.2 or newer. Verify the presence of commit 9829bdbfd9e7eeb8fb6c79ce36bcc77a681824b1 in the source tree and test that normal Lua scripting continues to function without errors.

Typical attack path

  1. Obtain valid Redis authentication credentials
  2. Craft a malicious Lua script targeting integer handling
  3. Submit the script for execution via the Redis Lua scripting interface
  4. Trigger the integer overflow leading to memory corruption
  5. Leverage corruption to achieve remote code execution

How to detect it

Review Redis logs for unusual or complex Lua scripts, monitor for unexpected child processes spawned by the Redis server, and correlate authentication events with script execution from known threat actor infrastructure associated with RediShell.

What your security team should do

  • Prioritize immediate upgrade of all Redis deployments to 8.2.2
  • Audit and minimize accounts permitted to execute Lua scripts
  • Enable detailed logging of Lua script submissions for monitoring
  • Review network exposure of Redis instances and enforce least-privilege access

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 cause an integer overflow and potentially lead to remote code execution The problem exists in all versions of Redis with Lua scripting. This issue is fixed in version 8.2.2.

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