CVE-2025-49844
Description
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.
How to fix
- redis redis6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2 or later
- lfprojects valkey7.2.11, 8.0.6, 8.1.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redis redis | v < 6.2.20, 7.0 ≤ v < 7.2.11, 7.4.0 ≤ v < 7.4.6, 8.0.0 ≤ v < 8.0.4, 8.2.0 ≤ v < 8.2.2 | 6.2.20, 7.2.11, 7.4.6, 8.0.4, 8.2.2 |
| lfprojects valkey | v < 7.2.11, 8.0.0 ≤ v < 8.0.6, 8.1.0 ≤ v < 8.1.4 | 7.2.11, 8.0.6, 8.1.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.