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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
RedisRedis6.2.0 (including)6.2.17 (excluding)
RedisRedis7.2.0 (including)7.2.7 (excluding)
RedisRedis7.4.0 (including)7.4.2 (excluding)
Discovery 1 for RHEL 9RedHatdiscovery/discovery-server-rhel9:1.12.0-1*
Discovery 1 for RHEL 9RedHatdiscovery/discovery-ui-rhel9:1.12.0-1*
Red Hat Enterprise Linux 8RedHatredis:6-8100020250113083959.489197e6*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatredis:6-8040020250123095605.522a0ee4*
Red Hat Enterprise Linux 8.4 Telecommunications Update ServiceRedHatredis:6-8040020250123095605.522a0ee4*
Red Hat Enterprise Linux 8.4 Update Services for SAP SolutionsRedHatredis:6-8040020250123095605.522a0ee4*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatredis:6-8060020250122114132.ad008a3a*
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRedHatredis:6-8060020250122114132.ad008a3a*
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRedHatredis:6-8060020250122114132.ad008a3a*
Red Hat Enterprise Linux 8.8 Extended Update SupportRedHatredis:6-8080020250120175236.63b34585*
Red Hat Enterprise Linux 9RedHatredis:7-9050020250115104757.9*
Red Hat Enterprise Linux 9RedHatredis-0:6.2.17-1.el9_5*
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsRedHatredis-0:6.2.6-1.el9_0.1*
Red Hat Enterprise Linux 9.2 Extended Update SupportRedHatredis-0:6.2.7-1.el9_2.1*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatredis-0:6.2.7-1.el9_4.1*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatredis:7-9040020250120173627.9*
RedictUbuntuoracular*
RedictUbuntuplucky*
RedisUbuntuesm-apps/bionic*
RedisUbuntuesm-apps/focal*
RedisUbuntuesm-apps/jammy*
RedisUbuntuesm-apps/noble*
RedisUbuntuesm-apps/xenial*
RedisUbuntuesm-infra-legacy/trusty*
RedisUbuntufocal*
RedisUbuntujammy*
RedisUbuntunoble*
RedisUbuntuoracular*
RedisUbuntuplucky*
RedisUbuntuupstream*
ValkeyUbuntuesm-apps/noble*
ValkeyUbuntunoble*
ValkeyUbuntuoracular*
ValkeyUbuntuplucky*

Potential Mitigations

References