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 the garbage collector, trigger a use-after-free 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. 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 restrict EVAL and EVALSHA commands.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
| Attack Vector | NETWORK |
|---|---|
| Attack Complexity | LOW |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | CHANGED |
| Confidentiality Impact | HIGH |
| Integrity Impact | HIGH |
| Availability Impact | HIGH |
| Source | Type | Description |
|---|---|---|
| [email protected] | Secondary |
en
CWE-416
|
| Vendor | Product | Version | Update | Type |
|---|---|---|---|---|
| redis | redis | * | <built-in method update of dict object at 0x7e60a8b56f80> | Application |
| redis | redis | * | <built-in method update of dict object at 0x7e6112c9a340> | Application |
| redis | redis | * | <built-in method update of dict object at 0x7e60a87b57c0> | Application |
| redis | redis | * | <built-in method update of dict object at 0x7e6112c9b000> | Application |
| redis | redis | * | <built-in method update of dict object at 0x7e60a8b576c0> | Application |
| lfprojects | valkey | * | <built-in method update of dict object at 0x7e60a8b54040> | Application |
| lfprojects | valkey | * | <built-in method update of dict object at 0x7e60a8b55e40> | Application |
| lfprojects | valkey | * | <built-in method update of dict object at 0x7e6108beaac0> | Application |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:a:lfprojects:valkey:*:*:*:*:*:*:*:* |