Vulnerability · Published Jul 11, 2023 · Assigned by GitHub_M

CVE-2023-36824Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis

High 7.4

In plain English

A high-severity heap buffer overflow in redis from redis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 77.4% (higher than 99.6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)77.4%top 0.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20redis7.0.12-r0ALPINE-CVE-2023-36824
Alpine:v3.21redis7.0.12-r0ALPINE-CVE-2023-36824
Alpine:v3.22redis7.0.12-r0ALPINE-CVE-2023-36824
Alpine:v3.23redis7.0.12-r0ALPINE-CVE-2023-36824
Alpine:v3.24redis7.0.12-r0ALPINE-CVE-2023-36824
Debian:12redis5:7.0.15-1~deb12u1DEBIAN-CVE-2023-36824
Debian:12redis5:7.0.15-1~deb12u1DSA-5610-1
Debian:13redis5:7.0.12-1DEBIAN-CVE-2023-36824
Debian:14redis5:7.0.12-1DEBIAN-CVE-2023-36824
Ubuntu:24.04:LTSredis5:7.0.12-1UBUNTU-CVE-2023-36824

Affected products (as reported)

VendorProductVersions
redis redis >= 7.0.0, < 7.0.12

Weakness: CWE-122, CWE-131 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References