codis
codis copied to clipboard
Fix redis lua library vulnerabilities (CVE-2024-31449, CVE-2025-49844)
CVE-2024-31449
Affected component/file: lua_bit.c
CVE-2024-31449 was found in Redis, and the same behavior is reproduced in Dragonfly.
A Lua stack overflow causes a crash.
According to the Redis security advisory, this vulnerability can lead to RCE attacks.
CVE-2025-29844
Affected component/file: lparser.c
Redis versions 6.2.6 and below are vulnerable to remote code execution via a specially crafted Lua script that manipulates the garbage collector to trigger use-after-free.
Fixed in version 8.2.2. Workaround: Use ACL to restrict EVAL and EVALSHA commands.
According to the Redis security advisory, this vulnerability can lead use-after-free and potentially lead to remote code execution.