Skip to content
OpenAdvisories
High · 7.4 CVE-2023-36824 EUVD-2023-40750

Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis

Published Jul 11, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

Description

Redis is an in-memory database that persists on disk. In Redit 7.0 prior to 7.0.12, extracting key names from a command and a list of arguments may, in some cases, trigger a heap overflow and result in reading random heap memory, heap corruption and potentially remote code execution. Several scenarios that may lead to authenticated users executing a specially crafted `COMMAND GETKEYS` or `COMMAND GETKEYSANDFLAGS`and authenticated users who were set with ACL rules that match key names, executing a specially crafted command that refers to a variadic list of key names. The vulnerability is patched in Redis 7.0.12.

Affected products

VendorProductAffectedFixed
redis redis >= 7.0.0, < 7.0.12 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 redis 5:7.0.12-1 —
Debian 13 redis 5:7.0.12-1 —
Debian 12 redis 5:7.0.15-1~deb12u1 DSA-5610-1
ReleasePackageFixed inAdvisory
SLES 15 SP5 redis7 7.0.8-150500.3.3.1 SUSE-SU-2023:2925-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed redis 7.0.12-1.1 openSUSE-SU-2024:13047-1
openSUSE Leap 15.5 redis7 7.0.8-150500.3.3.1 SUSE-SU-2023:2925-1
ReleasePackageFixed inAdvisory
Alpine v3.24 redis 7.0.12-r0 —
Alpine v3.23 redis 7.0.12-r0 —
Alpine v3.22 redis 7.0.12-r0 —
Alpine v3.21 redis 7.0.12-r0 —
Alpine v3.20 redis 7.0.12-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 redis 7.0.12-r0 —
Alpine v3.18 redis 7.0.12-r0 —
Alpine v3.17 redis 7.0.12-r0 —
Alpine v3.16 redis 7.0.12-r0 —

Advisories 4

References