CVE Vulnerabilities

CVE-2024-46981

Use After Free

Published: Jan 06, 2025 | Modified: Sep 05, 2025
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
7 IMPORTANT
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

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.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Redis Redis 6.2.0 (including) 6.2.17 (excluding)
Redis Redis 7.2.0 (including) 7.2.7 (excluding)
Redis Redis 7.4.0 (including) 7.4.2 (excluding)
Discovery 1 for RHEL 9 RedHat discovery/discovery-server-rhel9:1.12.0-1 *
Discovery 1 for RHEL 9 RedHat discovery/discovery-ui-rhel9:1.12.0-1 *
Red Hat Enterprise Linux 8 RedHat redis:6-8100020250113083959.489197e6 *
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support RedHat redis:6-8040020250123095605.522a0ee4 *
Red Hat Enterprise Linux 8.4 Telecommunications Update Service RedHat redis:6-8040020250123095605.522a0ee4 *
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions RedHat redis:6-8040020250123095605.522a0ee4 *
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support RedHat redis:6-8060020250122114132.ad008a3a *
Red Hat Enterprise Linux 8.6 Telecommunications Update Service RedHat redis:6-8060020250122114132.ad008a3a *
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions RedHat redis:6-8060020250122114132.ad008a3a *
Red Hat Enterprise Linux 8.8 Extended Update Support RedHat redis:6-8080020250120175236.63b34585 *
Red Hat Enterprise Linux 9 RedHat redis:7-9050020250115104757.9 *
Red Hat Enterprise Linux 9 RedHat redis-0:6.2.17-1.el9_5 *
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions RedHat redis-0:6.2.6-1.el9_0.1 *
Red Hat Enterprise Linux 9.2 Extended Update Support RedHat redis-0:6.2.7-1.el9_2.1 *
Red Hat Enterprise Linux 9.4 Extended Update Support RedHat redis-0:6.2.7-1.el9_4.1 *
Red Hat Enterprise Linux 9.4 Extended Update Support RedHat redis:7-9040020250120173627.9 *
Redict Ubuntu oracular *
Redis Ubuntu esm-apps/bionic *
Redis Ubuntu esm-apps/focal *
Redis Ubuntu esm-apps/jammy *
Redis Ubuntu esm-apps/noble *
Redis Ubuntu esm-apps/xenial *
Redis Ubuntu esm-infra-legacy/trusty *
Redis Ubuntu focal *
Redis Ubuntu jammy *
Redis Ubuntu noble *
Redis Ubuntu oracular *
Redis Ubuntu upstream *
Valkey Ubuntu esm-apps/noble *
Valkey Ubuntu noble *
Valkey Ubuntu oracular *

Potential Mitigations

References