Redis' Lua library commands may lead to remote code execution
Summary
Redis' Lua library commands may lead to remote code execution
Original description
The description as published by the source.
Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to manipulate the garbage collector and potentially lead to remote code execution. The problem is fixed in 7.4.2, 7.2.7, and 6.2.17. An additional 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 restrict EVAL and EVALSHA commands.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Affected packages
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Alpine Linux ALPINE-CVE-2024-46981 redis Fixed in: 6.2.18-r0
- Debian DEBIAN-CVE-2024-46981 redict Fixed in: 7.3.2+ds-1
- Ubuntu UBUNTU-CVE-2024-46981 redis Fixed in: 2:2.8.4-2ubuntu0.2+esm4
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- web github.com
- web github.com
- web github.com
- web lists.debian.org
- web vicarius.io
- web vicarius.io
- web codeberg.org
- web github.com
- web redict.io