CVE-2024-46981
Publication date 6 January 2025
Last updated 20 March 2025
Ubuntu priority
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.
Status
Package | Ubuntu Release | Status |
---|---|---|
redict | 24.10 oracular |
Needs evaluation
|
24.04 LTS noble | Not in release | |
22.04 LTS jammy | Not in release | |
20.04 LTS focal | Not in release | |
redis | 24.10 oracular |
Fixed 5:7.0.15-1ubuntu0.24.10.1
|
24.04 LTS noble |
Fixed 5:7.0.15-1ubuntu0.24.04.1
|
|
22.04 LTS jammy |
Fixed 5:6.0.16-1ubuntu1+esm2
|
|
20.04 LTS focal |
Fixed 5:5.0.7-2ubuntu0.1+esm3
|
|
18.04 LTS bionic |
Fixed 5:4.0.9-1ubuntu0.2+esm5
|
|
16.04 LTS xenial |
Fixed 2:3.0.6-1ubuntu0.4+esm3
|
|
valkey | 24.10 oracular |
Fixed 7.2.8+dfsg1-0ubuntu0.24.10.2
|
24.04 LTS noble |
Fixed 7.2.8+dfsg1-0ubuntu0.24.04.2
|
|
22.04 LTS jammy | Not in release | |
20.04 LTS focal | Not in release |
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu ProReferences
Related Ubuntu Security Notices (USN)
- USN-7321-1
- Redis vulnerabilities
- 5 March 2025
- USN-7359-1
- Valkey vulnerabilities
- 19 March 2025
Other references
- https://www.cve.org/CVERecord?id=CVE-2024-46981
- https://github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c
- https://github.com/redis/redis/commit/e344b2b5879aa52870e6838212dfb78b7968fcbf (7.2.7)
- https://codeberg.org/redict/redict/issues/60
- https://github.com/valkey-io/valkey/commit/4ffd3ebdeb028d0b9e50cf5986e9f1b6a2e1c031
- https://github.com/redis/redis/releases/tag/6.2.17
- https://github.com/redis/redis/releases/tag/7.2.7
- https://github.com/redis/redis/releases/tag/7.4.2