CVE-2025-49844: Redis Lua Use-After-Free may lead to remote code execution
CVE-2025-49844 affects 158 listed versions of Redis, Redis Valkey in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Redis
141 of 183 listed versions are affected. Fixed in 8.2.2. The newest release, 8.12.0, is not affected.
8.2.1 8.2.0 8.0.6 8.0.5 8.0.3 8.0.2 8.0.1 8.0.0 8.0 7.4.12 7.4.11 7.4.10 7.4.9 7.4.8 7.4.7 7.4.5 7.4.4 7.4.3 7.4.2 7.4.1 7.4.0 7.4.0-rc2 7.4.0-rc1 7.2.17 7.2.16 7.2.15 7.2.14 7.2.13 7.2.12 7.2.10 7.2.9 7.2.8 7.2.7 7.2.6 7.2.5 7.2.4 7.2.3 7.0.15 7.0.14 7.0.13 7.0.12 7.0.11 7.0.10 7.0.9 7.0.8 7.0.7 7.0.6 7.0.5 7.0.4 7.0.3 7.0.2 7.0.1 6.2.24 6.2.23 6.2.22 6.2.21 6.2.19 6.2.18 6.2.17 6.2.16 and 81 more
Redis Valkey
17 of 57 listed versions are affected. Fixed in 8.1.4, 8.0.6, 7.2.11. The newest release, 9.2.1, is not affected.
8.1.3 8.1.2 8.1.1 8.1.0 8.0.5 8.0.4 8.0.3 8.0.2 8.0.1 8.0.0 7.2.10 7.2.9 7.2.8 7.2.7 7.2.6 7.2.5 7.2.4
What it is
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 (NVD)
Published by GitHub on 3 October 2025. Last changed 19 October 2026. Exploit code is public (Metasploit or Nuclei).
Sources
Check one version you run: look CVE-2025-49844 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.