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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | redis | 7.0.12-r0 | ALPINE-CVE-2023-36824 |
| Alpine:v3.21 | redis | 7.0.12-r0 | ALPINE-CVE-2023-36824 |
| Alpine:v3.22 | redis | 7.0.12-r0 | ALPINE-CVE-2023-36824 |
| Alpine:v3.23 | redis | 7.0.12-r0 | ALPINE-CVE-2023-36824 |
| Alpine:v3.24 | redis | 7.0.12-r0 | ALPINE-CVE-2023-36824 |
| Debian:12 | redis | 5:7.0.15-1~deb12u1 | DEBIAN-CVE-2023-36824 |
| Debian:12 | redis | 5:7.0.15-1~deb12u1 | DSA-5610-1 |
| Debian:13 | redis | 5:7.0.12-1 | DEBIAN-CVE-2023-36824 |
| Debian:14 | redis | 5:7.0.12-1 | DEBIAN-CVE-2023-36824 |
| Ubuntu:24.04:LTS | redis | 5:7.0.12-1 | UBUNTU-CVE-2023-36824 |
Affected products (as reported)
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
- https://github.com/redis/redis/security/advisories/GHSA-4cfx-h9gq-xpx3 x_refsource_CONFIRM
- https://github.com/redis/redis/releases/tag/7.0.12 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TDNNH2ONMVNBQ6LUIAOAGDNFPKXNST5K/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MIF5MAGYARYUMRFK7PQI7HYXMK2HZE5T/
- https://security.netapp.com/advisory/ntap-20230814-0009/