CVE-2022-24834
HIGH8.8EPSS 45.5%Heap overflow issue with the Lua cjson library used by Redis
Published: 7/13/2023Modified: 11/19/2025
Also known as:ALPINE-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 packages (7)
- Alpine/redisfrom 0, < 7.0.12-r0
- Bitnami/keydb>= 2.6.0, < 6.0.20, >= 6.2.0, < 6.2.13, >= 7.0.0, < 7.0.12
- Bitnami/redis>= 2.6.0, < 6.0.20, >= 6.2.0, < 6.2.13, >= 7.0.0, < 7.0.12
- Bitnami/valkey>= 2.6.0, < 6.0.20, >= 6.2.0, < 6.2.13, >= 7.0.0, < 7.0.12
- Debian/redisfrom 0, < 5:6.0.16-1+deb11u3
- Debian/redisfrom 0, < 5:7.0.15-1~deb12u1
- Debian/redisfrom 0, < 5:6.0.16-1+deb11u3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
References (7)
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2022-24834
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-24834
- WEBhttps://github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/MIF5MAGYARYUMRFK7PQI7HYXMK2HZE5T/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/TDNNH2ONMVNBQ6LUIAOAGDNFPKXNST5K/
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-24834
- WEBhttps://security.netapp.com/advisory/ntap-20230814-0006/