CVE-2022-24834Redis Heap Buffer Overflow
A specially crafted Lua script executing in Redis can trigger a heap overflow in the cjson library, and result with heap corruption and potentially remote code execution.
Published Jul 13, 2023 · Updated Nov 24, 2026 · Also known as ALPINE-CVE-2022-24834, BELL-CVE-2022-24834, BIT-keydb-2022-24834, BIT-redis-2022-24834, BIT-valkey-2022-24834, CLEANSTART-2026-EE78869, CLEANSTART-2026-IR85053, CLSA-2026-1777976277, DEBIAN-CVE-2022-24834, DLA-3885-1, DSA-5610-1, GHSA-p8x2-9v9q-c838, MGASA-2023-0246, OESA-2023-1458, SUSE-SU-2023:2924-1, SUSE-SU-2023:2925-1, SUSE-SU-2023:3407-1, UBUNTU-CVE-2022-24834, USN-6531-1, openSUSE-SU-2024:13047-1
Key Facts
Patch immediately- CVE-2022-24834 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Redis, Fedora (Fedoraproject), keydb (bitnami) and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 52% probability of exploitation in the next 30 days.
- Fixed versions are available, including keydb 6.0.20, keydb 6.2.13, keydb 7.0.12.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
52%
Higher than 98.9% of all scored CVEs
Exploit maturity
None known
ATLAS score
29/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://access.redhat.com/security/cve/CVE-2022-24834
- advisoryhttps://docs.bell-sw.com/security/cves/CVE-2022-24834
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2022-24834
- advisoryhttps://security.alpinelinux.org/vuln/CVE-2022-24834
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2022-24834
- advisoryhttps://ubuntu.com/security/CVE-2022-24834
Description
Redis is an in-memory database that persists on disk. A specially crafted Lua script executing in Redis can trigger a heap overflow in the cjson library, and result with heap corruption and potentially remote code execution. The problem exists in all versions of Redis with Lua scripting support, starting from 2.6, and affects only authenticated and authorized users. The problem is fixed in versions 7.0.12, 6.2.13, and 6.0.20.
Affected Products
158 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| RedisRedis | >= 7.0.9-r0, >= 2.6.0, >= 7.0.0, < 7.0.12 | 6.0.20 |
| FedoraFedoraproject | 37, 38 | n/a |
| keydbbitnami | >= 2.6.0 | 6.0.20 |
| valkeybitnami | >= 2.6.0 | 6.0.20 |
| redis-sentineltuxcare | See advisory | 5:5.0.14-1+deb10u5+tuxcare.els2 |
Patched Releases
keydb
6.0.20, 6.2.13, 7.0.12
liblua5.1-0
5.1.5-8.1ubuntu0.20.04.1~esm1, 5.1.5-8.1ubuntu0.22.04.1~esm1
liblua5.1-0-dev
5.1.5-8.1ubuntu0.20.04.1~esm1, 5.1.5-8.1ubuntu0.22.04.1~esm1
liblua5.1-bitop-dev
1.0.2-5ubuntu0.20.04.1~esm2, 1.0.2-5ubuntu0.22.04.1~esm2
liblua5.1-bitop0
1.0.2-5ubuntu0.20.04.1~esm2, 1.0.2-5ubuntu0.22.04.1~esm2
lua-bitop
1.0.2-5ubuntu0.20.04.1~esm2, 1.0.2-5ubuntu0.22.04.1~esm2
lua-bitop-dev
1.0.2-5ubuntu0.20.04.1~esm2, 1.0.2-5ubuntu0.22.04.1~esm2
lua-cjson
2.1.0+dfsg-2.1ubuntu0.20.04.1~esm2, 2.1.0+dfsg-2.1ubuntu0.22.04.1~esm2
lua-cjson-dev
2.1.0+dfsg-2.1ubuntu0.20.04.1~esm2, 2.1.0+dfsg-2.1ubuntu0.22.04.1~esm2
lua5.1
5.1.5-8.1ubuntu0.20.04.1~esm1, 5.1.5-8.1ubuntu0.22.04.1~esm1
lua5.1-doc
5.1.5-8.1ubuntu0.20.04.1~esm1, 5.1.5-8.1ubuntu0.22.04.1~esm1
Redis
0:6.2.17-1.el9_5, 2:2.8.4-2ubuntu0.2+esm3, 2:3.0.6-1ubuntu0.4+esm2, 2:3.0.6-1ubuntu0.4+esm5, 4.0.11-19.oe1, 4.0.14-6.oe2203sp1, 4.0.14-6.oe2203sp2, 5:4.0.9-1ubuntu0.2+esm4, 5:4.0.9-1ubuntu0.2+esm7, 5:5.0.14-1+deb10u5+tuxcare.els2, 5:5.0.7-2ubuntu0.1+esm2, 5:6.0.16-1+deb11u3, 5:6.0.16-1ubuntu1+esm1, 5:7.0.12-1, 5:7.0.15-1~deb12u1, 5:7.0.15-1ubuntu0.24.04.4, 6.0.14-150200.6.26.1, 6.0.20, 6.0.20-1.mga8, 6.2.13, 6.2.13-1.ph3, 6.2.13-2, 6.2.17-1.0.1.module+el8.10.0+90491+f9002f77, 6.2.17-1.el9_5, 6.2.17-1.module_el8.10.0+3946+3de613d5, 6.2.17-1.module+el8.10.0+1923+5b85c6a7, 6.2.6-150400.3.22.1, 7.0.12, 7.0.12-1.1, 7.0.12-1.ph4, 7.0.12-1.ph5, 7.0.12-r0
redis-devel
6.2.17-1.0.1.module+el8.10.0+90491+f9002f77, 6.2.17-1.el9_5
redis-doc
6.2.17-1.0.1.module+el8.10.0+90491+f9002f77, 6.2.17-1.el9_5
redis-sentinel
2:3.0.6-1ubuntu0.4+esm5, 5:4.0.9-1ubuntu0.2+esm7, 5:5.0.14-1+deb10u5+tuxcare.els2, 5:7.0.15-1ubuntu0.24.04.4
redis-server
2:3.0.6-1ubuntu0.4+esm5, 5:4.0.9-1ubuntu0.2+esm7, 5:5.0.14-1+deb10u5+tuxcare.els2, 5:7.0.15-1ubuntu0.24.04.4
redis-tools
2:3.0.6-1ubuntu0.4+esm5, 5:4.0.9-1ubuntu0.2+esm7, 5:5.0.14-1+deb10u5+tuxcare.els2, 5:7.0.15-1ubuntu0.24.04.4
redis:6
8100020250113083959.489197e6
redis6
6.2.13-1.amzn2023.0.1
redis6-devel
6.2.13-1.amzn2023.0.1
redis6-doc
6.2.13-1.amzn2023.0.1
redis7
7.0.8-150500.3.3.1
valkey
6.0.20, 6.2.13, 7.0.12
Timeline
Publicly disclosed
Jul 13, 2023
Last updated
Nov 24, 2026
Weakness Type
- CWE-122 Heap-based Buffer Overflow
- CWE-680 Integer Overflow to Buffer Overflow
References
- advisoryaccess.redhat.com · CVE-2022-24834
- advisorydocs.bell-sw.com · CVE-2022-24834
- advisorycve.org · CVERecord
- advisorysecurity.alpinelinux.org · CVE-2022-24834
- advisorysecurity-tracker.debian.org · CVE-2022-24834
FAQ
Common Questions.
Redis is an in-memory database that persists on disk.
Affected: Redis versions >= 7.0.9-r0, >= 2.6.0, >= 7.0.0, < 7.0.12; Fedora (Fedoraproject) versions 37, 38; keydb (bitnami) versions >= 2.6.0, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including keydb 6.0.20, keydb 6.2.13, keydb 7.0.12.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-24834 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo