CVE-2024-46981 Details
Description
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.
A remote code execution vulnerability has been identified in Redis versions prior to 6.2.17, 7.2.7, and 7.4.2. This issue allows an authenticated user to execute a specially crafted Lua script that manipulates the garbage collector, potentially leading to arbitrary code execution. The vulnerability exists in all versions of Redis that support Lua scripting.
Users can upgrade to Redis versions 6.2.17, 7.2.7, or 7.4.2 to address this vulnerability. For those using Redis 5.0, an additional step can be taken to disable the EVAL and EVALSHA commands using the Redis Access Control List (ACL) feature, which prevents users from executing Lua scripts.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/01/msg00018.html | CVE | Mailing ListThird Party Advisory |
| https://www.vicarius.io/vsociety/posts/cve-2024-46981-detect-redis-vulnerability | CVE | ExploitThird Party Advisory |
| https://www.vicarius.io/vsociety/posts/cve-2024-46981-mitigate-redis-vulnerability | CVE | ExploitThird Party Advisory |
| https://github.com/redis/redis/releases/tag/6.2.17 | [email protected] | Release Notes |
| https://github.com/redis/redis/releases/tag/7.2.7 | [email protected] | Release Notes |
| https://github.com/redis/redis/releases/tag/7.4.2 | [email protected] | Release Notes |
| https://github.com/redis/redis/security/advisories/GHSA-39h2-x6c4-6w4c | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| redis redis | >= 6.2.0, < 6.2.17 >= 7.2.0, < 7.2.7 >= 7.4.0, < 7.4.2 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 5, 2025 | Initial Analysis | [email protected] |
| Mar 19, 2025 | CVE Modified | CVE |
| Jan 20, 2025 | CVE Modified | CVE |
| Jan 6, 2025 | New CVE Received | [email protected] |