Vulnerability record · CVE-2023-36824 · published 11 July 2023
CVE-2023-36824: Redis heap overflow in COMMAND GETKEYS key extraction
Redis · Redis
Redis 7.0 before 7.0.12 can trigger a heap overflow when extracting key names from a command and its arguments. The flaw affects authenticated users running crafted COMMAND GETKEYS or COMMAND GETKEYSANDFLAGS calls, and ACL users whose rules match key names running crafted commands with variadic key lists. It matters because it can leak heap memory, corrupt the heap, and potentially allow remote code execution.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Automated analysis
high priorityCVSS 8.8 with network reachability and high EPSS, but exploitation requires authentication and no KEV or public exploit is documented.
What it is
Redis 7.0 before 7.0.12 can trigger a heap overflow when extracting key names from a command and its arguments. The flaw affects authenticated users running crafted COMMAND GETKEYS or COMMAND GETKEYSANDFLAGS calls, and ACL users whose rules match key names running crafted commands with variadic key lists. It matters because it can leak heap memory, corrupt the heap, and potentially allow remote code execution.
Impact
An authenticated attacker can read random heap memory, corrupt heap state, and potentially achieve remote code execution in the Redis process.
Attack surface
Reached over the network through the Redis protocol by an authenticated user; no user interaction is required. The CVSS vector shows network access, low privileges, and no UI, so any account able to issue the relevant commands or matching ACL rules is a path.
Exploitation
Not listed in CISA KEV and no ransomware use is documented. EPSS is very high at 0.77422 (99.5th percentile), and references are release notes, vendor advisory, and third-party advisories only, with no public exploit tag.
What to do
- Upgrade Redis to 7.0.12 or later, which contains the patch.
- If immediate upgrade is not possible, restrict COMMAND GETKEYS and COMMAND GETKEYSANDFLAGS via ACLs and limit which users can run them.
- Review ACL rules that match key names and tighten them so untrusted users cannot trigger variadic key-name parsing paths.
- Apply the Fedora package updates referenced in the advisory for affected Fedora builds.
- Limit network exposure of Redis to trusted hosts and require strong authentication.
Detection
- Monitor Redis logs and command streams for COMMAND GETKEYS or COMMAND GETKEYSANDFLAGS issued by non-administrative users.
- Alert on Redis process crashes, restarts, or memory errors that could indicate heap corruption.
- Audit ACL configurations for rules that match key names and correlate with unusual command activity.
- Watch for unexpected outbound connections or child processes from the Redis host that could indicate post-exploitation.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/redis/redis/releases/tag/7.0.12 | Release Notes |
| https://github.com/redis/redis/security/advisories/GHSA-4cfx-h9gq-xpx3 | Vendor Advisory |
| https://lists.fedoraproject.org/archives/list/[email protected]/message/MIF5MAGYARYUMRFK7PQI7HYXM | Mailing ListThird Party Advisory |
| https://lists.fedoraproject.org/archives/list/[email protected]/message/TDNNH2ONMVNBQ6LUIAOAGDNFP | Mailing ListThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20230814-0009/ | Third Party Advisory |
| https://github.com/redis/redis/releases/tag/7.0.12 | Release Notes |
| https://github.com/redis/redis/security/advisories/GHSA-4cfx-h9gq-xpx3 | Vendor Advisory |
| https://lists.fedoraproject.org/archives/list/[email protected]/message/MIF5MAGYARYUMRFK7PQI7HYXM | Mailing ListThird Party Advisory |
| https://lists.fedoraproject.org/archives/list/[email protected]/message/TDNNH2ONMVNBQ6LUIAOAGDNFP | Mailing ListThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20230814-0009/ | Third Party Advisory |
Track CVE-2023-36824 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2023-36824), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.