Redis: Authenticated users can execute LUA scripts as a different user
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Redis | redis | before 8.2.2 | 8.2.2 | Patch available | CNA |
- redis VendorRedis Affected before 8.2.2 Fixed in 8.2.2 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* | before 6.2.20; 7.0 to before 7.2.11; 7.4.0 to before 7.4.6; 8.0.0 to before 8.0.4; 8.2.0 to before 8.2.2 | Vulnerable | Redis |
- cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* Versions before 6.2.20; 7.0 to before 7.2.11; 7.4.0 to before 7.4.6; 8.0.0 to before 8.0.4; 8.2.0 to before 8.2.2 Vulnerable ·Redis
Remediation
- Fix · CNA redis (redis) Fixed in 8.2.2
Red Hat 8 advisories
- RHSA-2025:21936 Released 2025-11-24 · Red Hat rating Importantvalkey security update
- Red Hat Enterprise Linux AppStream (v. 10) valkey-8.0.6-2.el10_1, valkey-devel-8.0.6-2.el10_1
- RHSA-2025:21916 Released 2025-11-24 · Red Hat rating Importantvalkey security update
- Red Hat Enterprise Linux AppStream (v. 9) valkey-8.0.6-2.el9_7, valkey-devel-8.0.6-2.el9_7
- RHSA-2025:20955 Released 2025-11-11 · Red Hat rating Importantredis:7 security update
- Red Hat Enterprise Linux AppStream (v. 9) redis-7.2.11-1.module+el9.7.0+23559+d075163a.aarch64::redis:7, redis-7.2.11-1.module+el9.7.0+23559+d075163a.ppc64le::redis:7, redis-7.2.11-1.module+el9.7.0+23559+d075163a.s390x::redis:7 +7
Show 5 more Red Hat advisories
- RHSA-2025:20926 Released 2025-11-11 · Red Hat rating Importantredis security update
- Red Hat Enterprise Linux AppStream (v. 9) redis-6.2.20-2.el9_7, redis-devel-6.2.20-2.el9_7, redis-doc-6.2.20-2.el9_7
- RHSA-2025:19675 Released 2025-11-04 · Red Hat rating Importantvalkey security update
- Red Hat Enterprise Linux AppStream (v. 10) valkey-8.0.6-1.el10_0, valkey-devel-8.0.6-1.el10_0
- RHSA-2025:19345 Released 2025-10-30 · Red Hat rating Importantredis:7 security update
- Red Hat Enterprise Linux AppStream (v. 9) redis-7.2.11-1.module+el9.6.0+23552+a3d3d132.aarch64::redis:7, redis-7.2.11-1.module+el9.6.0+23552+a3d3d132.ppc64le::redis:7, redis-7.2.11-1.module+el9.6.0+23552+a3d3d132.s390x::redis:7 +7
- RHSA-2025:19237 Released 2025-10-29 · Red Hat rating Importantredis security update
- Red Hat Enterprise Linux AppStream (v. 9) redis-6.2.20-1.el9_6, redis-devel-6.2.20-1.el9_6, redis-doc-6.2.20-1.el9_6
- RHSA-2025:19238 Released 2025-10-29 · Red Hat rating Importantredis:6 security update
- Red Hat Enterprise Linux AppStream (v. 8) redis-6.2.20-1.module+el8.10.0+23551+d4cd15d7.aarch64::redis:6, redis-6.2.20-1.module+el8.10.0+23551+d4cd15d7.ppc64le::redis:6, redis-6.2.20-1.module+el8.10.0+23551+d4cd15d7.s390x::redis:6 +7
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2025:19675, RHSA-2025:21936 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2025:19238 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:19237, RHSA-2025:19345, RHSA-2025:20926, RHSA-2025:20955, RHSA-2025:21916 |
Not affected: 13 products
- Logging Subsystem for Red Hat OpenShift
- Red Hat AI Inference Server
- Red Hat Ansible Automation Platform 2
- Red Hat Connectivity Link 1
- Red Hat Developer Hub 1
- Red Hat Discovery 1
- Red Hat Discovery 2
- Red Hat Enterprise Linux AI (RHEL AI)
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift Container Platform 4
- Red Hat OpenStack Platform 13 (Queens)
- Red Hat Quay 3
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2025-46818
- 2026-10-27 Affected versions changed · Red Hat
References
More Redis vulnerabilities
- TI-2022-00463 Missing authorization in Debian redis KEVCVSS 3.1CRITICAL 10.0
- TI-2025-31759 Redis Lua Use-After-Free may lead to remote code execution CVSS 3.1CRITICAL 10.0
- TI-2023-18618 Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis CVSS 3.1HIGH 8.8
- TI-2024-20813 Lua library commands may lead to stack overflow and RCE in Redis CVSS 3.1HIGH 8.8
- TI-2022-08647 Heap overflow issue with the Lua cjson library used by Redis CVSS 3.1HIGH 8.8
- TI-2022-08549 Lua scripts can be manipulated to overcome ACL rules in Redis CVSS 3.1HIGH 7.8
Sources
- CVE-2025-46818 · CVE Program
- CVE-2025-46818 · NVD
- FIRST EPSS
- CVE-2025-46818 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences