Vulnerability · Published Jul 13, 2023 · Assigned by GitHub_M
CVE-2022-24834Heap overflow issue with the Lua cjson library used by Redis
High 7.0
In plain English
A high-severity heap buffer overflow in redis from redis. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 41.4% (higher than 99% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | redis | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:9 | redis | 6.2.17-1.el9_5 | ALSA-2025:0693 |
| AlmaLinux:8 | redis-devel | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:9 | redis-devel | 6.2.17-1.el9_5 | ALSA-2025:0693 |
| AlmaLinux:8 | redis-doc | 6.2.17-1.module_el8.10.0+3946+3de613d5 | ALSA-2025:0595 |
| AlmaLinux:9 | redis-doc | 6.2.17-1.el9_5 | ALSA-2025:0693 |
| Alpine:v3.20 | redis | 7.0.12-r0 | ALPINE-CVE-2022-24834 |
| Alpine:v3.21 | redis | 7.0.12-r0 | ALPINE-CVE-2022-24834 |
| Alpine:v3.22 | redis | 7.0.12-r0 | ALPINE-CVE-2022-24834 |
| Alpine:v3.23 | redis | 7.0.12-r0 | ALPINE-CVE-2022-24834 |
| Alpine:v3.24 | redis | 7.0.12-r0 | ALPINE-CVE-2022-24834 |
| Debian:12 | redis | 5:7.0.15-1~deb12u1 | DEBIAN-CVE-2022-24834 |
| Debian:12 | redis | 5:7.0.15-1~deb12u1 | DSA-5610-1 |
| Debian:13 | redis | 5:7.0.12-1 | DEBIAN-CVE-2022-24834 |
| Debian:14 | redis | 5:7.0.12-1 | DEBIAN-CVE-2022-24834 |
| Rocky Linux:8 | redis | 0:6.2.17-1.module+el8.10.0+1923+5b85c6a7 | RLSA-2025:0595 |
| Rocky Linux:9 | redis | 0:6.2.17-1.el9_5 | RLSA-2025:0693 |
| Ubuntu:24.04:LTS | lua-cjson | no fix listed | UBUNTU-CVE-2022-24834 |
| Ubuntu:25.10 | lua-cjson | no fix listed | UBUNTU-CVE-2022-24834 |
| Ubuntu:26.04:LTS | lua-cjson | no fix listed | UBUNTU-CVE-2022-24834 |
| Ubuntu:26.10 | lua-cjson | no fix listed | UBUNTU-CVE-2022-24834 |
| Ubuntu:25.10 | lua-cmsgpack | no fix listed | UBUNTU-CVE-2022-24834 |
| Ubuntu:26.04:LTS | lua-cmsgpack | no fix listed | UBUNTU-CVE-2022-24834 |
| Ubuntu:26.10 | lua-cmsgpack | no fix listed | UBUNTU-CVE-2022-24834 |
Affected products (as reported)
Weakness: CWE-122, CWE-680 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838 x_refsource_CONFIRM
- 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-0006/